/* eslint-disable */
(function(g9HM, O9HM) {
    typeof exports === 'object' && typeof module !== 'undefined' ? O9HM(exports, require('@angular/core'), require('@angular/animations'), require('@angular/common'), require('@angular/forms'), require('rxjs/Subject'), require('rxjs/Observable')) : typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/animations', '@angular/common', '@angular/forms', 'rxjs/Subject', 'rxjs/Observable'], O9HM) : O9HM(g9HM.mobiscroll = g9HM.mobiscroll || {}, g9HM.ng.core, g9HM.ng.animations, g9HM.ng.common, g9HM.ng.forms, g9HM.Rx, g9HM.Rx);
}(this, function(x9HM, J9HM, M66M, K86M, L9HM, P46M, V86M) {
    function P66M(u86M) {
        return typeof u86M === "function";
    }

    function u36M(J86M) {
        return (typeof J86M === 'undefined' ? 'undefined' : B66M(J86M)) === "object";
    }

    function M16M(U86M) {
        return typeof U86M.length == 'number';
    }

    function Z16M(j86M) {
        return j86M.replace(/-+(.)?/g, function(L86M, x86M) {
            return x86M ? x86M.toUpperCase() : '';
        });
    }

    function K16M(d06M, S86M, M06M) {
        for (var G86M in S86M) {
            if (M06M && (Z66M.isPlainObject(S86M[G86M]) || Z66M.isArray(S86M[G86M]))) {
                if (Z66M.isPlainObject(S86M[G86M]) && !Z66M.isPlainObject(d06M[G86M]) || Z66M.isArray(S86M[G86M]) && !Z66M.isArray(d06M[G86M])) {
                    d06M[G86M] = {};
                }
                K16M(d06M[G86M], S86M[G86M], M06M);
            } else if (S86M[G86M] !== undefined) {
                d06M[G86M] = S86M[G86M];
            }
        }
    }

    function m36M(Z06M) {
        return Z06M.replace(/::/g, '/').replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2').replace(/([a-z\d])([A-Z])/g, '$1_$2').replace(/_/g, '-').toLowerCase();
    }

    function z16M(N06M, p06M) {
        return typeof p06M == "number" && !G76M[m36M(N06M)] ? p06M + "px" : p06M;
    }

    function e16M() {
        Y36M++;
        setTimeout(function() {
            Y36M--;
        }, 500);
    }

    function h36M(H4oM, X4oM, w4oM) {
        var v4oM = H4oM.originalEvent || H4oM,
            R4oM = (w4oM ? 'page' : 'client') + X4oM;
        if (v4oM.targetTouches && v4oM.targetTouches[0]) {
            return v4oM.targetTouches[0][R4oM];
        }
        if (v4oM.changedTouches && v4oM.changedTouches[0]) {
            return v4oM.changedTouches[0][R4oM];
        }
        return H4oM[R4oM];
    }

    function t86M(I4oM, S4oM, O4oM, G4oM, e4oM, x4oM) {
        function d2oM(p2oM) {
            if (!B4oM) {
                if (G4oM) {
                    p2oM.preventDefault();
                }
                B4oM = this;
                u4oM = h36M(p2oM, 'X');
                J4oM = h36M(p2oM, 'Y');
                F4oM = false;
                U4oM = new Date();
            }
        }

        function M2oM(N2oM) {
            if (B4oM && !F4oM && (Math.abs(h36M(N2oM, 'X') - u4oM) > e4oM || Math.abs(h36M(N2oM, 'Y') - J4oM) > e4oM)) {
                F4oM = true;
            }
        }

        function Z2oM(D2oM) {
            if (B4oM) {
                if (x4oM && new Date() - U4oM < 100 || !F4oM) {
                    D2oM.preventDefault();
                    O4oM.call(B4oM, D2oM, I4oM);
                }
                B4oM = false;
                e16M();
            }
        }

        function L4oM() {
            B4oM = false;
        }
        var u4oM, J4oM, B4oM, F4oM, U4oM, j4oM = U9HM.$,
            g4oM = j4oM(S4oM);
        e4oM = e4oM || 9;
        if (I4oM.settings.tap) {
            g4oM.on('touchstart.mbsc', d2oM).on('touchcancel.mbsc', L4oM).on('touchmove.mbsc', M2oM).on('touchend.mbsc', Z2oM);
        }
        g4oM.on('click.mbsc', function(t2oM) {
            t2oM.preventDefault();
            O4oM.call(this, t2oM, I4oM);
        });
    }

    function q86M(h2oM) {
        if (Y36M && !h2oM.tap && !(h2oM.target.nodeName == 'TEXTAREA' && h2oM.type == 'mousedown')) {
            h2oM.stopPropagation();
            h2oM.preventDefault();
            return false;
        }
    }

    function E36M(Z0oM, N0oM) {
        if (Z0oM === N0oM) {
            return true;
        } else if (!Z0oM || !N0oM || Z0oM.length !== N0oM.length) {
            return false;
        } else {
            for (var p0oM = 0; p0oM < Z0oM.length; p0oM++) {
                if (Z0oM[p0oM] !== N0oM[p0oM]) {
                    return false;
                }
            }
            return true;
        }
    }

    function X16M(J1XM, U1XM, j1XM, u1XM, x1XM, L1XM, G1XM) {
        var O1XM = new Date(J1XM, U1XM, j1XM, u1XM || 0, x1XM || 0, L1XM || 0, G1XM || 0);
        if (O1XM.getHours() == 23 && (u1XM || 0) === 0) {
            O1XM.setHours(O1XM.getHours() + 2);
        }
        return O1XM;
    }

    function Z46M(x5jM) {
        var j5jM = [Math.round(x5jM.r).toString(16), Math.round(x5jM.g).toString(16), Math.round(x5jM.b).toString(16)];
        u9HM.each(j5jM, function(G5jM, L5jM) {
            if (L5jM.length == 1) {
                j5jM[G5jM] = '0' + L5jM;
            }
        });
        return '#' + j5jM.join('');
    }

    function d46M(S5jM) {
        S5jM = parseInt(S5jM.indexOf('#') > -1 ? S5jM.substring(1) : S5jM, 16);
        return {
            r: S5jM >> 16,
            g: (S5jM & 0x00FF00) >> 8,
            b: S5jM & 0x0000FF,
            toString: function d9jM() {
                return 'rgb(' + this.r + ',' + this.g + ',' + this.b + ')';
            }
        };
    }

    function r16M(Y9jM) {
        var N9jM, D9jM, t9jM, p9jM = Y9jM.h,
            o9jM = Y9jM.s * 255 / 100,
            q9jM = Y9jM.v * 255 / 100;
        if (o9jM === 0) {
            N9jM = D9jM = t9jM = q9jM;
        } else {
            var Z9jM = q9jM,
                M9jM = (255 - o9jM) * q9jM / 255,
                h9jM = (Z9jM - M9jM) * (p9jM % 60) / 60;
            if (p9jM == 360) {
                p9jM = 0;
            }
            if (p9jM < 60) {
                N9jM = Z9jM;
                t9jM = M9jM;
                D9jM = M9jM + h9jM;
            } else if (p9jM < 120) {
                D9jM = Z9jM;
                t9jM = M9jM;
                N9jM = Z9jM - h9jM;
            } else if (p9jM < 180) {
                D9jM = Z9jM;
                N9jM = M9jM;
                t9jM = M9jM + h9jM;
            } else if (p9jM < 240) {
                t9jM = Z9jM;
                N9jM = M9jM;
                D9jM = Z9jM - h9jM;
            } else if (p9jM < 300) {
                t9jM = Z9jM;
                D9jM = M9jM;
                N9jM = M9jM + h9jM;
            } else if (p9jM < 360) {
                N9jM = Z9jM;
                D9jM = M9jM;
                t9jM = Z9jM - h9jM;
            } else {
                N9jM = D9jM = t9jM = 0;
            }
        }
        return {
            r: N9jM,
            g: D9jM,
            b: t9jM,
            toString: function n9jM() {
                return 'rgb(' + this.r + ',' + this.g + ',' + this.b + ')';
            }
        };
    }

    function A16M(C9jM) {
        var W9jM = 0,
            a9jM, E9jM, P9jM = Math.min(C9jM.r, C9jM.g, C9jM.b),
            m9jM = Math.max(C9jM.r, C9jM.g, C9jM.b),
            y9jM = m9jM - P9jM;
        E9jM = m9jM;
        a9jM = m9jM ? 255 * y9jM / m9jM : 0;
        if (a9jM) {
            if (C9jM.r == m9jM) {
                W9jM = (C9jM.g - C9jM.b) / y9jM;
            } else if (C9jM.g == m9jM) {
                W9jM = 2 + (C9jM.b - C9jM.r) / y9jM;
            } else {
                W9jM = 4 + (C9jM.r - C9jM.g) / y9jM;
            }
        } else {
            W9jM = -1;
        }
        W9jM *= 60;
        if (W9jM < 0) {
            W9jM += 360;
        }
        a9jM *= 100 / 255;
        E9jM *= 100 / 255;
        return {
            h: W9jM,
            s: a9jM,
            v: E9jM,
            toString: function K9jM() {
                return 'hsv(' + Math.round(this.h) + ',' + Math.round(this.s) + '%,' + Math.round(this.v) + '%)';
            }
        };
    }

    function l76M(f9jM) {
        var r9jM = f9jM.r / 255,
            z9jM = f9jM.g / 255,
            l9jM = f9jM.b / 255,
            V9jM = Math.max(r9jM, z9jM, l9jM),
            c9jM = Math.min(r9jM, z9jM, l9jM),
            T9jM = (V9jM + c9jM) / 2,
            b9jM, Q9jM;
        if (V9jM == c9jM) {
            b9jM = Q9jM = 0;
        } else {
            var A9jM = V9jM - c9jM;
            Q9jM = T9jM > 0.5 ? A9jM / (2 - V9jM - c9jM) : A9jM / (V9jM + c9jM);
            switch (V9jM) {
                case r9jM:
                    b9jM = (z9jM - l9jM) / A9jM + (z9jM < l9jM ? 6 : 0);
                    break;
                case z9jM:
                    b9jM = (l9jM - r9jM) / A9jM + 2;
                    break;
                case l9jM:
                    b9jM = (r9jM - z9jM) / A9jM + 4;
                    break;
            }
            b9jM /= 6;
        }
        return {
            h: Math.round(b9jM * 360),
            s: Math.round(Q9jM * 100),
            l: Math.round(T9jM * 100),
            toString: function s9jM() {
                return 'hsl(' + this.h + ',' + this.s + '%,' + this.l + '%)';
            }
        };
    }

    function Y86M(F9jM) {
        var R9jM, H9jM, X9jM, e9jM, i9jM, w9jM, k9jM = F9jM.h,
            B9jM = F9jM.s,
            v9jM = F9jM.l;
        if (!isFinite(k9jM)) {
            k9jM = 0;
        }
        if (!isFinite(B9jM)) {
            B9jM = 0;
        }
        if (!isFinite(v9jM)) {
            v9jM = 0;
        }
        k9jM /= 60;
        if (k9jM < 0) {
            k9jM = 6 - -k9jM % 6;
        }
        k9jM %= 6;
        B9jM = Math.max(0, Math.min(1, B9jM / 100));
        v9jM = Math.max(0, Math.min(1, v9jM / 100));
        i9jM = (1 - Math.abs(2 * v9jM - 1)) * B9jM;
        w9jM = i9jM * (1 - Math.abs(k9jM % 2 - 1));
        if (k9jM < 1) {
            R9jM = i9jM;
            H9jM = w9jM;
            X9jM = 0;
        } else if (k9jM < 2) {
            R9jM = w9jM;
            H9jM = i9jM;
            X9jM = 0;
        } else if (k9jM < 3) {
            R9jM = 0;
            H9jM = i9jM;
            X9jM = w9jM;
        } else if (k9jM < 4) {
            R9jM = 0;
            H9jM = w9jM;
            X9jM = i9jM;
        } else if (k9jM < 5) {
            R9jM = w9jM;
            H9jM = 0;
            X9jM = i9jM;
        } else {
            R9jM = i9jM;
            H9jM = 0;
            X9jM = w9jM;
        }
        e9jM = v9jM - i9jM / 2;
        return {
            r: Math.round((R9jM + e9jM) * 255),
            g: Math.round((H9jM + e9jM) * 255),
            b: Math.round((X9jM + e9jM) * 255),
            toString: function I9jM() {
                return 'rgb(' + this.r + ',' + this.g + ',' + this.b + ')';
            }
        };
    }

    function V16M(g9jM) {
        return l76M(d46M(g9jM));
    }

    function n86M(O9jM) {
        return Z46M(Y86M(O9jM));
    }

    function y16M(u9jM) {
        return Z46M(r16M(u9jM));
    }

    function m16M(J9jM) {
        return A16M(d46M(J9jM));
    }

    function s46M(f8dM) {
        if (!m66M.length) {
            f8dM.show();
        }
        m66M.push(f8dM);
    }

    function C86M(Q8dM) {
        var s8dM = F66M.length;
        F66M.push(Q8dM);
        if (!m66M.length) {
            if (s8dM) {
                F66M[0].hide();
            } else {
                Q8dM.show();
            }
        }
    }

    function q46M(v8dM, k8dM, i8dM, R8dM) {
        return j9HM({
            display: k8dM.display || 'center',
            cssClass: 'mbsc-alert',
            okText: k8dM.okText,
            cancelText: k8dM.cancelText,
            context: k8dM.context,
            theme: k8dM.theme,
            closeOnOverlayTap: false,
            onBeforeClose: function H8dM() {
                v8dM.shift();
            },
            onBeforeShow: function X8dM() {
                U9HM.activeInstance = null;
            },
            onHide: function w8dM(e8dM, B8dM) {
                if (i8dM) {
                    i8dM(B8dM._resolve);
                }
                if (k8dM.callback) {
                    k8dM.callback(B8dM._resolve);
                }
                if (B8dM) {
                    B8dM.destroy();
                }
                if (m66M.length) {
                    m66M[0].show();
                } else if (F66M.length) {
                    F66M[0].show();
                }
            }
        }, R8dM);
    }

    function v46M(F8dM) {
        return (F8dM.title ? '<h2>' + F8dM.title + '</h2>' : '') + '<p>' + (F8dM.message || '') + '</p>';
    }

    function W86M(g8dM, O8dM, u8dM) {
        var I8dM = new l66M(g8dM, q46M(m66M, O8dM, u8dM));
        s46M(I8dM);
    }

    function h86M(U8dM, j8dM, x8dM) {
        var J8dM = new l66M(U8dM, q46M(m66M, j8dM, x8dM, {
            buttons: ['ok', 'cancel'],
            onSet: function L8dM() {
                J8dM._resolve = true;
            }
        }));
        J8dM._resolve = false;
        s46M(J8dM);
    }

    function y86M(d0dM, M0dM, Z0dM) {
        var S8dM = void 0;
        var G8dM = new l66M(d0dM, q46M(m66M, M0dM, Z0dM, {
            buttons: ['ok', 'cancel'],
            onShow: function p0dM() {
                S8dM = G8dM._markup.find('input')[0];
                setTimeout(function() {
                    S8dM.focus();
                }, 300);
            },
            onSet: function N0dM() {
                G8dM._resolve = S8dM.value;
            }
        }));
        G8dM._resolve = '';
        s46M(G8dM);
    }

    function S76M(q0dM, D0dM, o0dM, Y0dM, n0dM) {
        var t0dM = void 0;
        var h0dM = new l66M(q0dM, q46M(F66M, D0dM, o0dM, {
            display: 'bottom',
            animate: n0dM,
            cssClass: Y0dM || 'mbsc-snackbar',
            scrollLock: false,
            buttons: [],
            onShow: function C0dM(m0dM, W0dM) {
                if (D0dM.duration !== false) {
                    t0dM = setTimeout(function() {
                        if (W0dM) {
                            W0dM.hide();
                        }
                    }, D0dM.duration || 3000);
                }
                if (D0dM.button) {
                    W0dM.tap(u9HM('.mbsc-snackbar-btn', m0dM.target), function() {
                        W0dM.hide();
                        if (D0dM.button.action) {
                            D0dM.button.action.call(this);
                        }
                    });
                }
            },
            onClose: function y0dM() {
                clearTimeout(t0dM);
            }
        }));
        C86M(h0dM);
    }

    function a86M(a0dM, E0dM, P0dM) {
        S76M(a0dM, E0dM, P0dM, 'mbsc-toast', 'fade');
    }

    function w36M(V0dM, z0dM, l0dM) {
        var K0dM = void 0;
        if (D16M) {
            K0dM = new Promise(function(A0dM) {
                V0dM(z0dM, l0dM, A0dM);
            });
        } else {
            V0dM(z0dM, l0dM);
        }
        return K0dM;
    }

    function L76M(w0dM, e0dM) {
        var R0dM = {},
            H0dM = w0dM.parent(),
            B0dM = H0dM.find('.mbsc-err-msg'),
            F0dM = w0dM.attr('data-icon-align') || 'left',
            X0dM = w0dM.attr('data-icon');
        if (H0dM.hasClass(B36M)) {
            H0dM = H0dM.parent();
        } else {
            u9HM('<span class="' + B36M + '"></span>').insertAfter(w0dM).append(w0dM);
        }
        if (B0dM) {
            H0dM.find('.' + B36M).append(B0dM);
        }
        if (X0dM) {
            if (X0dM.indexOf('{') !== -1) {
                R0dM = JSON.parse(X0dM);
            } else {
                R0dM[F0dM] = X0dM;
            }
        }
        if (X0dM || e0dM) {
            j9HM(R0dM, e0dM);
            H0dM.addClass((R0dM.right ? 'mbsc-ic-right ' : '') + (R0dM.left ? ' mbsc-ic-left' : '')).find('.' + B36M).append(R0dM.left ? '<span class="mbsc-input-ic mbsc-left-ic mbsc-ic mbsc-ic-' + R0dM.left + '"></span>' : '').append(R0dM.right ? '<span class="mbsc-input-ic mbsc-right-ic mbsc-ic mbsc-ic-' + R0dM.right + '"></span>' : '');
        }
    }

    function E86M(j0dM, x0dM, I0dM) {
        var J0dM = {},
            g0dM = I0dM[0],
            U0dM = I0dM.attr('data-password-toggle'),
            O0dM = I0dM.attr('data-icon-show') || 'eye',
            u0dM = I0dM.attr('data-icon-hide') || 'eye-blocked';
        if (U0dM) {
            J0dM.right = g0dM.type == 'password' ? O0dM : u0dM;
        }
        L76M(I0dM, J0dM);
        if (U0dM) {
            t86M(j0dM, x0dM.find('.mbsc-right-ic').addClass('mbsc-input-toggle'), function() {
                if (g0dM.type == "text") {
                    g0dM.type = "password";
                    u9HM(this).addClass('mbsc-ic-' + O0dM).removeClass('mbsc-ic-' + u0dM);
                } else {
                    g0dM.type = "text";
                    u9HM(this).removeClass('mbsc-ic-' + O0dM).addClass('mbsc-ic-' + u0dM);
                }
            });
        }
    }

    function j76M(G0dM, L0dM) {
        if (L0dM != 'button' && L0dM != 'submit' && L0dM != 'segmented') {
            G0dM.addClass('mbsc-control-w').find('label').addClass('mbsc-label');
            G0dM.contents().filter(function() {
                return this.nodeType == 3 && this.nodeValue && /\S/.test(this.nodeValue);
            }).each(function() {
                u9HM('<span class="mbsc-label"></span>').insertAfter(this).append(this);
            });
        }
    }

    function g76M(S0dM) {
        var Z5dM = S0dM[0];
        var d5dM = S0dM.attr('data-role');
        var M5dM = S0dM.attr('type') || Z5dM.nodeName.toLowerCase();
        if (/(switch|range|segmented|stepper)/.test(d5dM)) {
            M5dM = d5dM;
        }
        return M5dM;
    }

    function I76M(N5dM) {
        var p5dM = U9HM.themes.form[N5dM];
        return p5dM && p5dM.addRipple ? p5dM : null;
    }

    function e76M() {
        clearTimeout(F46M);
        F46M = setTimeout(function() {
            u9HM('textarea.mbsc-control').each(function() {
                o26M(this);
            });
        }, 100);
    }

    function o26M(K9dM) {
        var V9dM = void 0,
            z9dM = void 0,
            l9dM = void 0,
            A9dM = u9HM(K9dM).attr('rows') || 6;
        if (K9dM.offsetHeight) {
            K9dM.style.height = '';
            l9dM = K9dM.scrollHeight - K9dM.offsetHeight;
            V9dM = K9dM.offsetHeight + (l9dM > 0 ? l9dM : 0);
            z9dM = Math.round(V9dM / 24);
            if (z9dM > A9dM) {
                K9dM.scrollTop = V9dM;
                V9dM = 24 * A9dM + (V9dM - z9dM * 24);
                u9HM(K9dM).addClass('mbsc-textarea-scroll');
            } else {
                u9HM(K9dM).removeClass('mbsc-textarea-scroll');
            }
            if (V9dM) {
                K9dM.style.height = V9dM + 'px';
            }
        }
    }

    function P86M(r9dM) {
        var b9dM = u9HM(r9dM);
        if (!b9dM.hasClass('mbsc-textarea-scroll')) {
            var c9dM = r9dM.scrollHeight - r9dM.offsetHeight,
                T9dM = r9dM.offsetHeight + c9dM;
            r9dM.scrollTop = 0;
            r9dM.style.height = T9dM + 'px';
        }
    }

    function i26M(U98M) {
        var O98M = 0,
            u98M = 1,
            J98M = 0;
        while (U98M.length) {
            if (O98M > 3) {
                u98M = 60 * 60;
            } else if (O98M > 1) {
                u98M = 60;
            }
            J98M = J98M + U98M.pop() * u98M * (O98M % 2 ? 10 : 1);
            O98M++;
        }
        return J98M;
    }


    function m86M(A0PM, r0PM) {
        var l0PM = new XMLHttpRequest();
        l0PM.open('GET', A0PM, true);
        l0PM.onload = function() {
            if (this.status >= 200 && this.status < 400) {
                r0PM(JSON.parse(this.response));
            }
        };
        l0PM.onerror = function() {};
        l0PM.send();
    }

    function n76M(b0PM, c0PM, T0PM) {
        if (T0PM == 'jsonp') {
            o86M(b0PM, c0PM);
        } else {
            m86M(b0PM, c0PM);
        }
    }

    function b46M(v8NM, B8NM) {
        var R8NM = i66M(B8NM, 'X', true),
            H8NM = i66M(B8NM, 'Y', true),
            k8NM = v8NM.offset(),
            X8NM = R8NM - k8NM.left,
            w8NM = H8NM - k8NM.top,
            e8NM = Math.max(X8NM, v8NM[0].offsetWidth - X8NM),
            F8NM = Math.max(w8NM, v8NM[0].offsetHeight - w8NM),
            i8NM = 2 * Math.sqrt(Math.pow(e8NM, 2) + Math.pow(F8NM, 2));
        W36M(R66M);
        R66M = u9HM('<span class="mbsc-ripple"></span>').css({
            width: i8NM,
            height: i8NM,
            top: H8NM - k8NM.top - i8NM / 2,
            left: R8NM - k8NM.left - i8NM / 2
        }).appendTo(v8NM);
        setTimeout(function() {
            R66M.addClass('mbsc-ripple-scaled mbsc-ripple-visible');
        }, 10);
    }

    function W36M(I8NM) {
        setTimeout(function() {
            if (I8NM) {
                I8NM.removeClass('mbsc-ripple-visible');
                setTimeout(function() {
                    I8NM.remove();
                }, 2000);
            }
        }, 100);
    }

    function p16M(J8NM, g8NM, U8NM, j8NM) {
        var O8NM, u8NM;
        J8NM.off('.mbsc-ripple').on('touchstart.mbsc-ripple mousedown.mbsc-ripple', g8NM, function(x8NM) {
            if (x76M(x8NM, this)) {
                O8NM = i66M(x8NM, 'X');
                u8NM = i66M(x8NM, 'Y');
                a66M = u9HM(this);
                if (!a66M.hasClass(U8NM) && !a66M.hasClass(j8NM)) {
                    b46M(a66M, x8NM);
                } else {
                    a66M = null;
                }
            }
        }).on('touchmove.mbsc-ripple mousemove.mbsc-ripple', g8NM, function(L8NM) {
            if (a66M && Math.abs(i66M(L8NM, 'X') - O8NM) > 9 || Math.abs(i66M(L8NM, 'Y') - u8NM) > 9) {
                W36M(R66M);
                a66M = null;
            }
        }).on('touchend.mbsc-ripple touchcancel.mbsc-ripple mouseleave.mbsc-ripple mouseup.mbsc-ripple', g8NM, function() {
            if (a66M) {
                setTimeout(function() {
                    W36M(R66M);
                }, 100);
                a66M = null;
            }
        });
    }
    var U9HM = U9HM || {};
    var B66M = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(z86M) {
        return typeof z86M;
    } : function(l86M) {
        return l86M && typeof Symbol === "function" && l86M.constructor === Symbol && l86M !== Symbol.prototype ? "symbol" : typeof l86M;
    };
    var y66M = function(A86M, r86M) {
        if (!(A86M instanceof r86M)) {
            throw new TypeError("Cannot call a class as a function");
        }
    };
    var k36M = function() {
        function b86M(Q86M, f86M) {
            for (var T86M = 0; T86M < f86M.length; T86M++) {
                var c86M = f86M[T86M];
                c86M.enumerable = c86M.enumerable || false;
                c86M.configurable = true;
                if ("value" in c86M) c86M.writable = true;
                Object.defineProperty(Q86M, c86M.key, c86M);
            }
        }
        return function(s86M, k86M, i86M) {
            if (k86M) b86M(s86M.prototype, k86M);
            if (i86M) b86M(s86M, i86M);
            return s86M;
        };
    }();
    var L66M = function v86M(H86M, B86M, e86M) {
        if (H86M === null) H86M = Function.prototype;
        var R86M = Object.getOwnPropertyDescriptor(H86M, B86M);
        if (R86M === undefined) {
            var X86M = Object.getPrototypeOf(H86M);
            if (X86M === null) {
                return undefined;
            } else {
                return v86M(X86M, B86M, e86M);
            }
        } else if ("value" in R86M) {
            return R86M.value;
        } else {
            var w86M = R86M.get;
            if (w86M === undefined) {
                return undefined;
            }
            return w86M.call(e86M);
        }
    };
    var s66M = function(I86M, F86M) {
        if (typeof F86M !== "function" && F86M !== null) {
            throw new TypeError("Super expression must either be null or a function, not " + typeof F86M);
        }
        I86M.prototype = Object.create(F86M && F86M.prototype, {
            constructor: {
                value: I86M,
                enumerable: false,
                writable: true,
                configurable: true
            }
        });
        if (F86M) Object.setPrototypeOf ? Object.setPrototypeOf(I86M, F86M) : I86M.__proto__ = F86M;
    };
    var c66M = function(O86M, g86M) {
        if (!O86M) {
            throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
        }
        return g86M && (typeof g86M === "object" || typeof g86M === "function") ? g86M : O86M;
    };
    var G76M = {
        'column-count': 1,
        'columns': 1,
        'font-weight': 1,
        'line-height': 1,
        'opacity': 1,
        'z-index': 1,
        'zoom': 1
    };
    var d16M = {
        'readonly': 'readOnly'
    };
    var J46M = [];
    var O66M = Array.prototype.slice;
    var U36M = function() {
        var t06M = function h06M(o06M) {
            var Y06M = this,
                q06M = 0;
            for (q06M = 0; q06M < o06M.length; q06M++) {
                Y06M[q06M] = o06M[q06M];
            }
            Y06M.length = o06M.length;
            return D06M(this);
        };
        var D06M = function n06M(C06M, E06M) {
            var y06M = [],
                W06M = 0;
            if (C06M && !E06M) {
                if (C06M instanceof t06M) {
                    return C06M;
                }
            }
            if (P66M(C06M)) {
                return n06M(document).ready(C06M);
            }
            if (C06M) {
                if (typeof C06M === 'string') {
                    var P06M, K06M, m06M;
                    C06M = m06M = C06M.trim();
                    if (m06M.indexOf('<') >= 0 && m06M.indexOf('>') >= 0) {
                        var a06M = 'div';
                        if (m06M.indexOf('<li') === 0) {
                            a06M = 'ul';
                        }
                        if (m06M.indexOf('<tr') === 0) {
                            a06M = 'tbody';
                        }
                        if (m06M.indexOf('<td') === 0 || m06M.indexOf('<th') === 0) {
                            a06M = 'tr';
                        }
                        if (m06M.indexOf('<tbody') === 0) {
                            a06M = 'table';
                        }
                        if (m06M.indexOf('<option') === 0) {
                            a06M = 'select';
                        }
                        K06M = document.createElement(a06M);
                        K06M.innerHTML = m06M;
                        for (W06M = 0; W06M < K06M.childNodes.length; W06M++) {
                            y06M.push(K06M.childNodes[W06M]);
                        }
                    } else {
                        if (!E06M && C06M[0] === '#' && !C06M.match(/[ .<>:~]/)) {
                            P06M = [document.getElementById(C06M.split('#')[1])];
                        } else {
                            if (E06M instanceof t06M) {
                                E06M = E06M[0];
                            }
                            P06M = (E06M || document).querySelectorAll(C06M);
                        }
                        for (W06M = 0; W06M < P06M.length; W06M++) {
                            if (P06M[W06M]) {
                                y06M.push(P06M[W06M]);
                            }
                        }
                    }
                } else if (C06M.nodeType || C06M === window || C06M === document) {
                    y06M.push(C06M);
                } else if (C06M.length > 0 && C06M[0].nodeType) {
                    for (W06M = 0; W06M < C06M.length; W06M++) {
                        y06M.push(C06M[W06M]);
                    }
                } else if (n06M.isArray(C06M)) {
                    y06M = C06M;
                }
            }
            return new t06M(y06M);
        };
        t06M.prototype = {
            ready: function V06M(z06M) {
                if (document.attachEvent ? document.readyState == 'complete' : document.readyState != 'loading') {
                    z06M(D06M);
                } else {
                    document.addEventListener('DOMContentLoaded', function() {
                        z06M(D06M);
                    }, false);
                }
                return this;
            },
            concat: J46M.concat,
            empty: function l06M() {
                return this.each(function() {
                    this.innerHTML = '';
                });
            },
            map: function A06M(r06M) {
                return D06M(D06M.map(this, function(b06M, c06M) {
                    return r06M.call(b06M, c06M, b06M);
                }));
            },
            slice: function T06M() {
                return D06M(O66M.apply(this, arguments));
            },
            addClass: function f06M(i06M) {
                if (typeof i06M === 'undefined') {
                    return this;
                }
                var k06M = i06M.split(' ');
                for (var Q06M = 0; Q06M < k06M.length; Q06M++) {
                    for (var s06M = 0; s06M < this.length; s06M++) {
                        if (typeof this[s06M].classList !== 'undefined' && k06M[Q06M] !== '') {
                            this[s06M].classList.add(k06M[Q06M]);
                        }
                    }
                }
                return this;
            },
            removeClass: function v06M(w06M) {
                if (typeof w06M === 'undefined') {
                    return this;
                }
                var X06M = w06M.split(' ');
                for (var R06M = 0; R06M < X06M.length; R06M++) {
                    for (var H06M = 0; H06M < this.length; H06M++) {
                        if (typeof this[H06M].classList !== 'undefined' && X06M[R06M] !== '') {
                            this[H06M].classList.remove(X06M[R06M]);
                        }
                    }
                }
                return this;
            },
            hasClass: function B06M(e06M) {
                return this[0] ? this[0].classList.contains(e06M) : false;
            },
            toggleClass: function F06M(u06M) {
                var O06M = u06M.split(' ');
                for (var g06M = 0; g06M < O06M.length; g06M++) {
                    for (var I06M = 0; I06M < this.length; I06M++) {
                        if (typeof this[I06M].classList !== 'undefined') {
                            this[I06M].classList.toggle(O06M[g06M]);
                        }
                    }
                }
                return this;
            },
            closest: function J06M(x06M, L06M) {
                var U06M = this[0],
                    j06M = false;
                if (u36M(x06M)) {
                    j06M = D06M(x06M);
                }
                while (U06M && !(j06M ? j06M.indexOf(U06M) >= 0 : D06M.matches(U06M, x06M))) {
                    U06M = U06M !== L06M && U06M.nodeType !== U06M.DOCUMENT_NODE && U06M.parentNode;
                }
                return D06M(U06M);
            },
            attr: function G06M(S06M, p56M) {
                var Z56M;
                if (arguments.length === 1 && typeof S06M === 'string') {
                    if (this.length) {
                        Z56M = this[0].getAttribute(S06M);
                        return Z56M || Z56M === '' ? Z56M : undefined;
                    }
                } else {
                    for (var d56M = 0; d56M < this.length; d56M++) {
                        if (arguments.length === 2) {
                            this[d56M].setAttribute(S06M, p56M);
                        } else {
                            for (var M56M in S06M) {
                                this[d56M][M56M] = S06M[M56M];
                                this[d56M].setAttribute(M56M, S06M[M56M]);
                            }
                        }
                    }
                    return this;
                }
            },
            removeAttr: function N56M(t56M) {
                for (var D56M = 0; D56M < this.length; D56M++) {
                    this[D56M].removeAttribute(t56M);
                }
                return this;
            },
            prop: function h56M(q56M, Y56M) {
                q56M = d16M[q56M] || q56M;
                if (arguments.length === 1 && typeof q56M === 'string') {
                    return this[0] ? this[0][q56M] : undefined;
                } else {
                    for (var o56M = 0; o56M < this.length; o56M++) {
                        this[o56M][q56M] = Y56M;
                    }
                    return this;
                }
            },
            val: function n56M(W56M) {
                if (typeof W56M === 'undefined') {
                    if (this.length && this[0].multiple) {
                        return D06M.map(this.find('option:checked'), function(m56M) {
                            return m56M.value;
                        });
                    }
                    return this[0] ? this[0].value : undefined;
                }
                if (this.length && this[0].multiple) {
                    D06M.each(this[0].options, function() {
                        this.selected = W56M.indexOf(this.value) != -1;
                    });
                } else {
                    for (var C56M = 0; C56M < this.length; C56M++) {
                        this[C56M].value = W56M;
                    }
                }
                return this;
            },
            on: function y56M(r56M, V56M, K56M, z56M) {
                function l56M(f56M) {
                    var b56M, c56M, T56M = f56M.target;
                    if (D06M(T56M).is(V56M)) {
                        K56M.call(T56M, f56M);
                    } else {
                        c56M = D06M(T56M).parents();
                        for (b56M = 0; b56M < c56M.length; b56M++) {
                            if (D06M(c56M[b56M]).is(V56M)) {
                                K56M.call(c56M[b56M], f56M);
                            }
                        }
                    }
                }

                function A56M(Q56M, v56M, k56M, i56M) {
                    var s56M = v56M.split('.');
                    if (!Q56M.DomNameSpaces) {
                        Q56M.DomNameSpaces = [];
                    }
                    Q56M.DomNameSpaces.push({
                        namespace: s56M[1],
                        event: s56M[0],
                        listener: k56M,
                        capture: i56M
                    });
                    Q56M.addEventListener(s56M[0], k56M, i56M);
                }
                var P56M = r56M.split(' '),
                    E56M, a56M;
                for (E56M = 0; E56M < this.length; E56M++) {
                    if (P66M(V56M) || V56M === false) {
                        if (P66M(V56M)) {
                            z56M = K56M || false;
                            K56M = V56M;
                        }
                        for (a56M = 0; a56M < P56M.length; a56M++) {
                            if (P56M[a56M].indexOf('.') != -1) {
                                A56M(this[E56M], P56M[a56M], K56M, z56M);
                            } else {
                                this[E56M].addEventListener(P56M[a56M], K56M, z56M);
                            }
                        }
                    } else {
                        for (a56M = 0; a56M < P56M.length; a56M++) {
                            if (!this[E56M].DomLiveListeners) {
                                this[E56M].DomLiveListeners = [];
                            }
                            this[E56M].DomLiveListeners.push({
                                listener: K56M,
                                liveListener: l56M
                            });
                            if (P56M[a56M].indexOf('.') != -1) {
                                A56M(this[E56M], P56M[a56M], l56M, z56M);
                            } else {
                                this[E56M].addEventListener(P56M[a56M], l56M, z56M);
                            }
                        }
                    }
                }
                return this;
            },
            off: function R56M(u56M, I56M, e56M, g56M) {
                function O56M(S56M) {
                    var J56M, U56M, j56M, x56M = S56M.split('.'),
                        L56M = x56M[0],
                        G56M = x56M[1];
                    for (J56M = 0; J56M < X56M.length; ++J56M) {
                        if (X56M[J56M].DomNameSpaces) {
                            for (U56M = 0; U56M < X56M[J56M].DomNameSpaces.length; ++U56M) {
                                j56M = X56M[J56M].DomNameSpaces[U56M];
                                if (j56M.namespace == G56M && (j56M.event == L56M || !L56M)) {
                                    X56M[J56M].removeEventListener(j56M.event, j56M.listener, j56M.capture);
                                    j56M.removed = true;
                                }
                            }
                            for (U56M = X56M[J56M].DomNameSpaces.length - 1; U56M >= 0; --U56M) {
                                if (X56M[J56M].DomNameSpaces[U56M].removed) {
                                    X56M[J56M].DomNameSpaces.splice(U56M, 1);
                                }
                            }
                        }
                    }
                }
                var B56M, w56M, H56M, F56M, X56M = this;
                B56M = u56M.split(' ');
                for (w56M = 0; w56M < B56M.length; w56M++) {
                    for (H56M = 0; H56M < this.length; H56M++) {
                        if (P66M(I56M) || I56M === false) {
                            if (P66M(I56M)) {
                                g56M = e56M || false;
                                e56M = I56M;
                            }
                            if (B56M[w56M].indexOf('.') === 0) {
                                O56M(B56M[w56M].substr(1), e56M, g56M);
                            } else {
                                this[H56M].removeEventListener(B56M[w56M], e56M, g56M);
                            }
                        } else {
                            if (this[H56M].DomLiveListeners) {
                                for (F56M = 0; F56M < this[H56M].DomLiveListeners.length; F56M++) {
                                    if (this[H56M].DomLiveListeners[F56M].listener === e56M) {
                                        this[H56M].removeEventListener(B56M[w56M], this[H56M].DomLiveListeners[F56M].liveListener, g56M);
                                    }
                                }
                            }
                            if (this[H56M].DomNameSpaces && this[H56M].DomNameSpaces.length && B56M[w56M]) {
                                O56M(B56M[w56M]);
                            }
                        }
                    }
                }
                return this;
            },
            trigger: function d96M(t96M, D96M) {
                var p96M = t96M.split(' ');
                for (var M96M = 0; M96M < p96M.length; M96M++) {
                    for (var N96M = 0; N96M < this.length; N96M++) {
                        var Z96M;
                        try {
                            Z96M = new CustomEvent(p96M[M96M], {
                                detail: D96M,
                                bubbles: true,
                                cancelable: true
                            });
                        } catch (h96M) {
                            Z96M = document.createEvent('Event');
                            Z96M.initEvent(p96M[M96M], true, true);
                            Z96M.detail = D96M;
                        }
                        this[N96M].dispatchEvent(Z96M);
                    }
                }
                return this;
            },
            width: function q96M(o96M) {
                if (o96M !== undefined) {
                    return this.css('width', o96M);
                }
                if (this[0] === window) {
                    return window.innerWidth;
                } else if (this[0] === document) {
                    return document.documentElement.scrollWidth;
                } else {
                    return this.length > 0 ? parseFloat(this.css('width')) : null;
                }
            },
            height: function Y96M(W96M) {
                if (W96M !== undefined) {
                    return this.css('height', W96M);
                }
                if (this[0] === window) {
                    return window.innerHeight;
                } else if (this[0] === document) {
                    var C96M = document.body,
                        n96M = document.documentElement;
                    return Math.max(C96M.scrollHeight, C96M.offsetHeight, n96M.clientHeight, n96M.scrollHeight, n96M.offsetHeight);
                } else {
                    return this.length > 0 ? parseFloat(this.css('height')) : null;
                }
            },
            innerWidth: function m96M() {
                var a96M = this;
                if (this.length > 0) {
                    if (this[0].innerWidth) {
                        return this[0].innerWidth;
                    } else {
                        var y96M = this[0].offsetWidth,
                            E96M = ['left', 'right'];
                        E96M.forEach(function(P96M) {
                            y96M -= parseInt(a96M.css(Z16M('border-' + P96M + '-width')) || 0, 10);
                        });
                        return y96M;
                    }
                }
            },
            innerHeight: function K96M() {
                var z96M = this;
                if (this.length > 0) {
                    if (this[0].innerHeight) {
                        return this[0].innerHeight;
                    } else {
                        var V96M = this[0].offsetHeight,
                            l96M = ['top', 'bottom'];
                        l96M.forEach(function(A96M) {
                            V96M -= parseInt(z96M.css(Z16M('border-' + A96M + '-width')) || 0, 10);
                        });
                        return V96M;
                    }
                }
            },
            offset: function r96M() {
                if (this.length > 0) {
                    var T96M = this[0],
                        b96M = T96M.getBoundingClientRect(),
                        c96M = document.documentElement;
                    return {
                        top: b96M.top + window.pageYOffset - c96M.clientTop,
                        left: b96M.left + window.pageXOffset - c96M.clientLeft
                    };
                }
            },
            hide: function f96M() {
                for (var Q96M = 0; Q96M < this.length; Q96M++) {
                    this[Q96M].style.display = 'none';
                }
                return this;
            },
            show: function s96M() {
                for (var k96M = 0; k96M < this.length; k96M++) {
                    if (this[k96M].style.display == "none") {
                        this[k96M].style.display = '';
                    }
                    if (getComputedStyle(this[k96M], '').getPropertyValue("display") == "none") {
                        this[k96M].style.display = 'block';
                    }
                }
                return this;
            },
            clone: function i96M() {
                return this.map(function() {
                    return this.cloneNode(true);
                });
            },
            styles: function v96M() {
                return this[0] ? window.getComputedStyle(this[0], null) : undefined;
            },
            css: function R96M(H96M, F96M) {
                var w96M, X96M, B96M = this[0],
                    e96M = '';
                if (arguments.length < 2) {
                    if (!B96M) {
                        return;
                    }
                    if (typeof H96M === 'string') {
                        return B96M.style[H96M] || getComputedStyle(B96M, '').getPropertyValue(H96M);
                    }
                }
                if (typeof H96M === 'string') {
                    if (!F96M && F96M !== 0) {
                        this.each(function() {
                            this.style.removeProperty(m36M(H96M));
                        });
                    } else {
                        e96M = m36M(H96M) + ":" + z16M(H96M, F96M);
                    }
                } else {
                    for (X96M in H96M) {
                        if (!H96M[X96M] && H96M[X96M] !== 0) {
                            for (w96M = 0; w96M < this.length; w96M++) {
                                this[w96M].style.removeProperty(m36M(X96M));
                            }
                        } else {
                            e96M += m36M(X96M) + ':' + z16M(X96M, H96M[X96M]) + ';';
                        }
                    }
                }
                return this.each(function() {
                    this.style.cssText += ';' + e96M;
                });
            },
            each: function I96M(O96M) {
                for (var g96M = 0; g96M < this.length; g96M++) {
                    if (O96M.apply(this[g96M], [g96M, this[g96M]]) === false) {
                        break;
                    }
                }
                return this;
            },
            filter: function u96M(j96M) {
                var U96M = [];
                for (var J96M = 0; J96M < this.length; J96M++) {
                    if (P66M(j96M)) {
                        if (j96M.call(this[J96M], J96M, this[J96M])) {
                            U96M.push(this[J96M]);
                        }
                    } else if (D06M.matches(this[J96M], j96M)) {
                        U96M.push(this[J96M]);
                    }
                }
                return new t06M(U96M);
            },
            html: function x96M(G96M) {
                if (typeof G96M === 'undefined') {
                    return this[0] ? this[0].innerHTML : undefined;
                } else {
                    this.empty();
                    for (var L96M = 0; L96M < this.length; L96M++) {
                        this[L96M].innerHTML = G96M;
                    }
                    return this;
                }
            },
            text: function S96M(M6oM) {
                if (typeof M6oM === 'undefined') {
                    return this[0] ? this[0].textContent.trim() : null;
                } else {
                    for (var d6oM = 0; d6oM < this.length; d6oM++) {
                        this[d6oM].textContent = M6oM;
                    }
                    return this;
                }
            },
            is: function Z6oM(p6oM) {
                return this.length > 0 && D06M.matches(this[0], p6oM);
            },
            not: function N6oM(D6oM) {
                var h6oM = [];
                if (P66M(D6oM) && D6oM.call !== undefined) {
                    this.each(function(q6oM) {
                        if (!D6oM.call(this, q6oM)) {
                            h6oM.push(this);
                        }
                    });
                } else {
                    var t6oM = typeof D6oM == 'string' ? this.filter(D6oM) : M16M(D6oM) && P66M(D6oM.item) ? O66M.call(D6oM) : D06M(D6oM);
                    if (u36M(t6oM)) {
                        t6oM = D06M.map(t6oM, function(o6oM) {
                            return o6oM;
                        });
                    }
                    this.each(function(n6oM, Y6oM) {
                        if (t6oM.indexOf(Y6oM) < 0) {
                            h6oM.push(Y6oM);
                        }
                    });
                }
                return D06M(h6oM);
            },
            indexOf: function C6oM(m6oM) {
                for (var W6oM = 0; W6oM < this.length; W6oM++) {
                    if (this[W6oM] === m6oM) {
                        return W6oM;
                    }
                }
            },
            index: function y6oM(a6oM) {
                return a6oM ? this.indexOf(D06M(a6oM)[0]) : this.parent().children().indexOf(this[0]);
            },
            get: function E6oM(P6oM) {
                return P6oM === undefined ? O66M.call(this) : this[P6oM >= 0 ? P6oM : P6oM + this.length];
            },
            eq: function K6oM(V6oM) {
                if (typeof V6oM === 'undefined') {
                    return this;
                }
                var z6oM = this.length,
                    l6oM;
                if (V6oM > z6oM - 1) {
                    return new t06M([]);
                }
                if (V6oM < 0) {
                    l6oM = z6oM + V6oM;
                    return l6oM < 0 ? new t06M([]) : new t06M([this[l6oM]]);
                }
                return new t06M([this[V6oM]]);
            },
            append: function A6oM(r6oM) {
                var b6oM, c6oM;
                for (b6oM = 0; b6oM < this.length; b6oM++) {
                    if (typeof r6oM === 'string') {
                        var T6oM = document.createElement('div');
                        T6oM.innerHTML = r6oM;
                        while (T6oM.firstChild) {
                            this[b6oM].appendChild(T6oM.firstChild);
                        }
                    } else if (r6oM instanceof t06M) {
                        for (c6oM = 0; c6oM < r6oM.length; c6oM++) {
                            this[b6oM].appendChild(r6oM[c6oM]);
                        }
                    } else {
                        this[b6oM].appendChild(r6oM);
                    }
                }
                return this;
            },
            appendTo: function f6oM(Q6oM) {
                D06M(Q6oM).append(this);
                return this;
            },
            prepend: function s6oM(v6oM) {
                var k6oM, i6oM;
                for (k6oM = 0; k6oM < this.length; k6oM++) {
                    if (typeof v6oM === 'string') {
                        var R6oM = document.createElement('div');
                        R6oM.innerHTML = v6oM;
                        for (i6oM = R6oM.childNodes.length - 1; i6oM >= 0; i6oM--) {
                            this[k6oM].insertBefore(R6oM.childNodes[i6oM], this[k6oM].childNodes[0]);
                        }
                    } else if (v6oM instanceof t06M) {
                        for (i6oM = 0; i6oM < v6oM.length; i6oM++) {
                            this[k6oM].insertBefore(v6oM[i6oM], this[k6oM].childNodes[0]);
                        }
                    } else {
                        this[k6oM].insertBefore(v6oM, this[k6oM].childNodes[0]);
                    }
                }
                return this;
            },
            prependTo: function H6oM(X6oM) {
                D06M(X6oM).prepend(this);
                return this;
            },
            insertBefore: function w6oM(I6oM) {
                var B6oM = D06M(I6oM);
                for (var e6oM = 0; e6oM < this.length; e6oM++) {
                    if (B6oM.length === 1) {
                        B6oM[0].parentNode.insertBefore(this[e6oM], B6oM[0]);
                    } else if (B6oM.length > 1) {
                        for (var F6oM = 0; F6oM < B6oM.length; F6oM++) {
                            B6oM[F6oM].parentNode.insertBefore(this[e6oM].cloneNode(true), B6oM[F6oM]);
                        }
                    }
                }
                return this;
            },
            insertAfter: function g6oM(U6oM) {
                var O6oM = D06M(U6oM);
                for (var u6oM = 0; u6oM < this.length; u6oM++) {
                    if (O6oM.length === 1) {
                        O6oM[0].parentNode.insertBefore(this[u6oM], O6oM[0].nextSibling);
                    } else if (O6oM.length > 1) {
                        for (var J6oM = 0; J6oM < O6oM.length; J6oM++) {
                            O6oM[J6oM].parentNode.insertBefore(this[u6oM].cloneNode(true), O6oM[J6oM].nextSibling);
                        }
                    }
                }
                return this;
            },
            next: function j6oM(x6oM) {
                if (this.length > 0) {
                    if (x6oM) {
                        if (this[0].nextElementSibling && D06M(this[0].nextElementSibling).is(x6oM)) {
                            return new t06M([this[0].nextElementSibling]);
                        } else {
                            return new t06M([]);
                        }
                    } else {
                        if (this[0].nextElementSibling) {
                            return new t06M([this[0].nextElementSibling]);
                        } else {
                            return new t06M([]);
                        }
                    }
                } else {
                    return new t06M([]);
                }
            },
            nextAll: function L6oM(M3oM) {
                var d3oM = [],
                    G6oM = this[0];
                if (!G6oM) {
                    return new t06M([]);
                }
                while (G6oM.nextElementSibling) {
                    var S6oM = G6oM.nextElementSibling;
                    if (M3oM) {
                        if (D06M(S6oM).is(M3oM)) {
                            d3oM.push(S6oM);
                        }
                    } else {
                        d3oM.push(S6oM);
                    }
                    G6oM = S6oM;
                }
                return new t06M(d3oM);
            },
            prev: function Z3oM(p3oM) {
                if (this.length > 0) {
                    if (p3oM) {
                        if (this[0].previousElementSibling && D06M(this[0].previousElementSibling).is(p3oM)) {
                            return new t06M([this[0].previousElementSibling]);
                        } else {
                            return new t06M([]);
                        }
                    } else {
                        if (this[0].previousElementSibling) {
                            return new t06M([this[0].previousElementSibling]);
                        } else {
                            return new t06M([]);
                        }
                    }
                } else {
                    return new t06M([]);
                }
            },
            prevAll: function N3oM(q3oM) {
                var h3oM = [];
                var D3oM = this[0];
                if (!D3oM) {
                    return new t06M([]);
                }
                while (D3oM.previousElementSibling) {
                    var t3oM = D3oM.previousElementSibling;
                    if (q3oM) {
                        if (D06M(t3oM).is(q3oM)) {
                            h3oM.push(t3oM);
                        }
                    } else {
                        h3oM.push(t3oM);
                    }
                    D3oM = t3oM;
                }
                return new t06M(h3oM);
            },
            parent: function o3oM(C3oM) {
                var n3oM = [];
                for (var Y3oM = 0; Y3oM < this.length; Y3oM++) {
                    if (this[Y3oM].parentNode !== null) {
                        if (C3oM) {
                            if (D06M(this[Y3oM].parentNode).is(C3oM)) {
                                n3oM.push(this[Y3oM].parentNode);
                            }
                        } else {
                            n3oM.push(this[Y3oM].parentNode);
                        }
                    }
                }
                return D06M(D06M.unique(n3oM));
            },
            parents: function W3oM(E3oM) {
                var y3oM = [];
                for (var a3oM = 0; a3oM < this.length; a3oM++) {
                    var m3oM = this[a3oM].parentNode;
                    while (m3oM) {
                        if (E3oM) {
                            if (D06M(m3oM).is(E3oM)) {
                                y3oM.push(m3oM);
                            }
                        } else {
                            y3oM.push(m3oM);
                        }
                        m3oM = m3oM.parentNode;
                    }
                }
                return D06M(D06M.unique(y3oM));
            },
            find: function P3oM(A3oM) {
                var z3oM = [];
                for (var K3oM = 0; K3oM < this.length; K3oM++) {
                    var l3oM = this[K3oM].querySelectorAll(A3oM);
                    for (var V3oM = 0; V3oM < l3oM.length; V3oM++) {
                        z3oM.push(l3oM[V3oM]);
                    }
                }
                return new t06M(z3oM);
            },
            children: function r3oM(Q3oM) {
                var T3oM = [];
                for (var f3oM = 0; f3oM < this.length; f3oM++) {
                    var c3oM = this[f3oM].childNodes;
                    for (var b3oM = 0; b3oM < c3oM.length; b3oM++) {
                        if (!Q3oM) {
                            if (c3oM[b3oM].nodeType === 1) {
                                T3oM.push(c3oM[b3oM]);
                            }
                        } else {
                            if (c3oM[b3oM].nodeType === 1 && D06M(c3oM[b3oM]).is(Q3oM)) {
                                T3oM.push(c3oM[b3oM]);
                            }
                        }
                    }
                }
                return new t06M(D06M.unique(T3oM));
            },
            remove: function s3oM() {
                for (var k3oM = 0; k3oM < this.length; k3oM++) {
                    if (this[k3oM].parentNode) {
                        this[k3oM].parentNode.removeChild(this[k3oM]);
                    }
                }
                return this;
            },
            add: function i3oM() {
                var v3oM = this;
                var R3oM, H3oM;
                for (R3oM = 0; R3oM < arguments.length; R3oM++) {
                    var X3oM = D06M(arguments[R3oM]);
                    for (H3oM = 0; H3oM < X3oM.length; H3oM++) {
                        v3oM[v3oM.length] = X3oM[H3oM];
                        v3oM.length++;
                    }
                }
                return v3oM;
            },
            before: function w3oM(B3oM) {
                D06M(B3oM).insertBefore(this);
                return this;
            },
            after: function e3oM(F3oM) {
                D06M(F3oM).insertAfter(this);
                return this;
            },
            scrollTop: function I3oM(g3oM) {
                if (!this.length) {
                    return;
                }
                var O3oM = 'scrollTop' in this[0];
                if (g3oM === undefined) {
                    return O3oM ? this[0].scrollTop : this[0].pageYOffset;
                }
                return this.each(O3oM ? function() {
                    this.scrollTop = g3oM;
                } : function() {
                    this.scrollTo(this.scrollX, g3oM);
                });
            },
            scrollLeft: function u3oM(J3oM) {
                if (!this.length) {
                    return;
                }
                var U3oM = 'scrollLeft' in this[0];
                if (J3oM === undefined) {
                    return U3oM ? this[0].scrollLeft : this[0].pageXOffset;
                }
                return this.each(U3oM ? function() {
                    this.scrollLeft = J3oM;
                } : function() {
                    this.scrollTo(J3oM, this.scrollY);
                });
            },
            contents: function j3oM() {
                return this.map(function(L3oM, x3oM) {
                    return O66M.call(x3oM.childNodes);
                });
            },
            nextUntil: function G3oM(M4oM) {
                var S3oM = this,
                    d4oM = [];
                while (S3oM.length && !S3oM.filter(M4oM).length) {
                    d4oM.push(S3oM[0]);
                    S3oM = S3oM.next();
                }
                return D06M(d4oM);
            },
            prevUntil: function Z4oM(D4oM) {
                var p4oM = this,
                    N4oM = [];
                while (p4oM.length && !D06M(p4oM).filter(D4oM).length) {
                    N4oM.push(p4oM[0]);
                    p4oM = p4oM.prev();
                }
                return D06M(N4oM);
            },
            detach: function t4oM() {
                return this.remove();
            }
        };
        D06M.fn = t06M.prototype;
        return D06M;
    }();
    var Z66M = U36M;
    U9HM.$ = U36M;
    Z66M.inArray = function(h4oM, q4oM, o4oM) {
        return J46M.indexOf.call(q4oM, h4oM, o4oM);
    };
    Z66M.extend = function(Y4oM) {
        var C4oM, n4oM = O66M.call(arguments, 1);
        if (typeof Y4oM == 'boolean') {
            C4oM = Y4oM;
            Y4oM = n4oM.shift();
        }
        Y4oM = Y4oM || {};
        n4oM.forEach(function(W4oM) {
            K16M(Y4oM, W4oM, C4oM);
        });
        return Y4oM;
    };
    Z66M.isFunction = P66M;
    Z66M.isArray = function(m4oM) {
        return Object.prototype.toString.apply(m4oM) === '[object Array]';
    };
    Z66M.isPlainObject = function(y4oM) {
        return u36M(y4oM) && y4oM !== null && y4oM !== y4oM.window && Object.getPrototypeOf(y4oM) == Object.prototype;
    };
    Z66M.each = function(a4oM, K4oM) {
        var E4oM, P4oM;
        if (!u36M(a4oM) || !K4oM) {
            return;
        }
        if (Z66M.isArray(a4oM) || a4oM instanceof U36M) {
            for (E4oM = 0; E4oM < a4oM.length; E4oM++) {
                if (K4oM.call(a4oM[E4oM], E4oM, a4oM[E4oM]) === false) {
                    break;
                }
            }
        } else {
            for (P4oM in a4oM) {
                if (a4oM.hasOwnProperty(P4oM) && P4oM !== 'length') {
                    if (K4oM.call(a4oM[P4oM], P4oM, a4oM[P4oM]) === false) {
                        break;
                    }
                }
            }
        }
        return this;
    };
    Z66M.unique = function(l4oM) {
        var z4oM = [];
        for (var V4oM = 0; V4oM < l4oM.length; V4oM++) {
            if (z4oM.indexOf(l4oM[V4oM]) === -1) {
                z4oM.push(l4oM[V4oM]);
            }
        }
        return z4oM;
    };
    Z66M.map = function(b4oM, f4oM) {
        var A4oM, r4oM = [],
            c4oM, T4oM;
        if (M16M(b4oM)) {
            for (c4oM = 0; c4oM < b4oM.length; c4oM++) {
                A4oM = f4oM(b4oM[c4oM], c4oM);
                if (A4oM !== null) {
                    r4oM.push(A4oM);
                }
            }
        } else {
            for (T4oM in b4oM) {
                A4oM = f4oM(b4oM[T4oM], T4oM);
                if (A4oM !== null) {
                    r4oM.push(A4oM);
                }
            }
        }
        return r4oM.length > 0 ? Z66M.fn.concat.apply([], r4oM) : r4oM;
    };
    Z66M.matches = function(Q4oM, s4oM) {
        if (!s4oM || !Q4oM || Q4oM.nodeType !== 1) {
            return false;
        }
        var k4oM = Q4oM.matchesSelector || Q4oM.webkitMatchesSelector || Q4oM.mozMatchesSelector || Q4oM.msMatchesSelector;
        return k4oM.call(Q4oM, s4oM);
    };
    var q66M;
    var N36M;
    var p36M;
    var B16M;
    var H36M = [];
    var Y66M = typeof window !== 'undefined';
    var R36M = Y66M ? navigator.userAgent : '';
    var v36M = R36M.match(/Android|iPhone|iPad|iPod|Windows Phone|Windows|MSIE/i);
    var t46M = Y66M && window.requestAnimationFrame || function(i4oM) {
        i4oM();
    };
    var o46M = Y66M && window.cancelAnimationFrame || function() {};
    if (/Android/i.test(v36M)) {
        q66M = 'android';
        N36M = R36M.match(/Android\s+([\d\.]+)/i);
        if (N36M) {
            H36M = N36M[0].replace('Android ', '').split('.');
        }
    } else if (/iPhone|iPad|iPod/i.test(v36M)) {
        q66M = 'ios';
        N36M = R36M.match(/OS\s+([\d\_]+)/i);
        if (N36M) {
            H36M = N36M[0].replace(/_/g, '.').replace('OS ', '').split('.');
        }
    } else if (/Windows Phone/i.test(v36M)) {
        q66M = 'wp';
    } else if (/Windows|MSIE/i.test(v36M)) {
        q66M = 'windows';
    }
    p36M = H36M[0];
    B16M = H36M[1];
    var Y36M = 0;
    if (Y66M) {
        ['mouseover', 'mousedown', 'mouseup', 'click'].forEach(function(q2oM) {
            document.addEventListener(q2oM, q86M, true);
        });
        if (q66M == 'android' && p36M < 5) {
            document.addEventListener('change', function(o2oM) {
                if (Y36M && o2oM.target.type == 'checkbox' && !o2oM.target.mbscChange) {
                    o2oM.stopPropagation();
                    o2oM.preventDefault();
                }
                delete o2oM.target.mbscChange;
            }, true);
        }
    }
	
	(function() {

        function A2oM() {
            var c2oM = ['Webkit', 'Moz', 'O', 'ms'],
                T2oM;
            for (T2oM in c2oM) {
                if (l2oM([c2oM[T2oM] + 'Transform'])) {
                    return '-' + c2oM[T2oM].toLowerCase() + '-';
                }
            }
            return '';
        }

        function l2oM(r2oM) {
            var b2oM;
            for (b2oM in r2oM) {
                if (E2oM[r2oM[b2oM]] !== undefined) {
                    return true;
                }
            }
            return false;
        }
        var V2oM, E2oM, Y2oM, K2oM, y2oM, m2oM = function f2oM() {},
            n2oM = U9HM.$,
            a2oM = +new Date(),
            W2oM = {},
            C2oM = n2oM.extend;
        if (Y66M) {
            E2oM = document.createElement('modernizr').style;
            y2oM = A2oM();
            K2oM = y2oM.replace(/^\-/, '').replace(/\-$/, '').replace('moz', 'Moz');
            V2oM = E2oM.animation !== undefined ? 'animationend' : 'webkitAnimationEnd';
        }
        Y2oM = C2oM(U9HM, {
            $: n2oM,
            version: '3.2.2',
            util: {
                prefix: y2oM,
                jsPrefix: K2oM,
                animEnd: V2oM,
                preventClick: e16M,
                testTouch: function Q2oM(k2oM, s2oM) {
                    if (k2oM.type == 'touchstart') {
                        n2oM(s2oM).attr('data-touch', '1');
                    } else if (n2oM(s2oM).attr('data-touch')) {
                        n2oM(s2oM).removeAttr('data-touch');
                        return false;
                    }
                    return true;
                },
                objectToArray: function i2oM(R2oM) {
                    var v2oM = [],
                        H2oM;
                    for (H2oM in R2oM) {
                        v2oM.push(R2oM[H2oM]);
                    }
                    return v2oM;
                },
                arrayToObject: function X2oM(B2oM) {
                    var e2oM = {},
                        w2oM;
                    if (B2oM) {
                        for (w2oM = 0; w2oM < B2oM.length; w2oM++) {
                            e2oM[B2oM[w2oM]] = B2oM[w2oM];
                        }
                    }
                    return e2oM;
                },
                isNumeric: function F2oM(I2oM) {
                    return I2oM - parseFloat(I2oM) >= 0;
                },
                isString: function g2oM(O2oM) {
                    return typeof O2oM === 'string';
                },
                getCoord: h36M,
                getPosition: function u2oM(x2oM, L2oM) {
                    var U2oM = getComputedStyle(x2oM[0]),
                        J2oM, j2oM;
                    n2oM.each(['t', 'webkitT', 'MozT', 'OT', 'msT'], function(S2oM, G2oM) {
                        if (U2oM[G2oM + 'ransform'] !== undefined) {
                            J2oM = U2oM[G2oM + 'ransform'];
                            return false;
                        }
                    });
                    J2oM = J2oM.split(')')[0].split(', ');
                    j2oM = L2oM ? J2oM[13] || J2oM[5] : J2oM[12] || J2oM[4];
                    return j2oM;
                },
                constrain: function d7oM(M7oM, Z7oM, p7oM) {
                    return Math.max(Z7oM, Math.min(M7oM, p7oM));
                },
                vibrate: function N7oM(D7oM) {
                    if ('vibrate' in navigator) {
                        navigator.vibrate(D7oM || 50);
                    }
                },
                throttle: function t7oM(o7oM, h7oM) {
                    var q7oM, Y7oM;
                    h7oM = h7oM || 100;
                    return function() {
                        var C7oM = this,
                            n7oM = +new Date(),
                            W7oM = arguments;
                        if (q7oM && n7oM < q7oM + h7oM) {
                            clearTimeout(Y7oM);
                            Y7oM = setTimeout(function() {
                                q7oM = n7oM;
                                o7oM.apply(C7oM, W7oM);
                            }, h7oM);
                        } else {
                            q7oM = n7oM;
                            o7oM.apply(C7oM, W7oM);
                        }
                    };
                }
            },
            autoTheme: 'mobiscroll',
            presets: {
                scroller: {},
                numpad: {},
                listview: {},
                menustrip: {}
            },
            themes: {
                form: {},
                page: {},
                frame: {},
                scroller: {},
                listview: {},
                menustrip: {},
                progress: {}
            },
            platform: {
                name: q66M,
                majorVersion: p36M,
                minorVersion: B16M
            },
            i18n: {},
            instances: W2oM,
            classes: {},
            components: {},
            settings: {},
            setDefaults: function m7oM(y7oM) {
                C2oM(this.settings, y7oM);

            },
            customTheme: function a7oM(z7oM, V7oM) {
                var E7oM, K7oM = U9HM.themes,
                    P7oM = ['frame', 'scroller', 'listview', 'menustrip', 'form', 'progress'];
                for (E7oM = 0; E7oM < P7oM.length; E7oM++) {
                    K7oM[P7oM[E7oM]][z7oM] = U9HM.$.extend({}, K7oM[P7oM[E7oM]][V7oM], {
                        baseTheme: V7oM
                    });
                }
            }
        });
        Y2oM.presetShort = Y2oM.presetShort || function() {};
        Y2oM.classes.Base = function(b7oM, r7oM) {
            function i7oM() {
                n2oM(b7oM).addClass('mbsc-comp');
                if (!b7oM.id) {
                    b7oM.id = 'mobiscroll' + ++a2oM;
                } else if (W2oM[b7oM.id]) {
                    W2oM[b7oM.id].destroy();
                }
                W2oM[b7oM.id] = A7oM;
                A7oM.__ready = true;
            }
            var k7oM, T7oM, l7oM, s7oM, c7oM, f7oM, Q7oM, A7oM = this;
            A7oM.settings = {};
            A7oM._init = m2oM;
            A7oM._destroy = m2oM;
            A7oM._processSettings = m2oM;
            A7oM.init = function(C1oM) {
                var y1oM;
                for (y1oM in A7oM.settings) {
                    delete A7oM.settings[y1oM];
                }
                l7oM = A7oM.settings;
                C2oM(r7oM, C1oM);
                if (A7oM._hasDef) {
                    Q7oM = Y2oM.settings;
                }
                C2oM(l7oM, A7oM._defaults, Q7oM, r7oM);
                if (A7oM._hasTheme) {
                    c7oM = l7oM.theme;
                    if (c7oM == 'auto' || !c7oM) {
                        c7oM = Y2oM.autoTheme;
                    }
                    if (c7oM == 'default') {
                        c7oM = 'mobiscroll';
                    }
                    r7oM.theme = c7oM;
                    s7oM = Y2oM.themes[A7oM._class] ? Y2oM.themes[A7oM._class][c7oM] : {};
                }
                if (A7oM._hasLang) {
                    k7oM = Y2oM.i18n[l7oM.lang];
                }
                if (A7oM._hasTheme) {
                    f7oM('onThemeLoad', {
                        lang: k7oM,
                        settings: r7oM
                    });
                }
                C2oM(l7oM, s7oM, k7oM, Q7oM, r7oM);
                A7oM._processSettings();
                var m1oM = {
                    form: true,
                    page: true,
                    scrollview: true,
                    progress: true,
                    progressbase: true,
                    switch: true,
                    slider: true,
                    sliderbase: true,
                    stepper: true
                };
                if (m1oM[A7oM._class]) {
                    A7oM._init(C1oM);
                    f7oM('onInit');
                } else {
                    var Y1oM = {
                        className: A7oM._class,
                        buttons: A7oM.buttons,
                        platform: Y2oM.platform,
                        userAgent: navigator.userAgent,
                        defSortHandle: n2oM(b7oM).find(l7oM.listSelector || 'ul,ol').length ? 'left' : 'right',
                        settings: {
                            activeClass: l7oM.activeClass,
                            ampmText: l7oM.ampmText,
                            amText: l7oM.amText,
                            animateIcons: l7oM.animateIcons,
                            backText: l7oM.backText,
                            baseTheme: l7oM.baseTheme,
                            buttons: l7oM.buttons,
                            btnClass: l7oM.btnClass,
                            btnWidth: l7oM.btnWidth,
                            closeIcon: l7oM.closeIcon,
                            context: l7oM.context == 'body' ? 'body' : '',
                            controls: l7oM.controls,
                            cssClass: l7oM.cssClass,
                            dateDisplay: l7oM.dateDisplay,
                            dateFormat: l7oM.dateFormat,
                            dateWheels: l7oM.dateWheels,
                            dayNames: l7oM.dayNames,
                            dayNamesShort: l7oM.dayNamesShort,
                            daySuffix: l7oM.daySuffix,
                            display: l7oM.display,
                            dayText: l7oM.dayText,
                            endYear: l7oM.endYear,
                            fixedHeader: l7oM.fixedHeader,
                            handleClass: l7oM.handleClass,
                            handleMarkup: l7oM.handleMarkup,
                            hideText: l7oM.hideText,
                            hourText: l7oM.hourText,
                            itemNode: l7oM.itemNode,
                            itemWidth: l7oM.itemWidth,
                            lang: l7oM.lang,
                            lapIcon: l7oM.lapIcon,
                            lapText: l7oM.lapText,
                            layout: l7oM.layout,
                            leftArrowClass: l7oM.leftArrowClass,
                            max: l7oM.max,
                            min: l7oM.min,
                            minuteText: l7oM.minuteText,
                            monthNames: l7oM.monthNames,
                            monthNamesShort: l7oM.monthNamesShort,
                            monthSuffix: l7oM.monthSuffix,
                            monthText: l7oM.monthText,
                            nowIcon: l7oM.nowIcon,
                            nowText: l7oM.nowText,
                            pmText: l7oM.pmText,
                            preset: l7oM.preset,
                            resetIcon: l7oM.resetIcon,
                            resetText: l7oM.resetText,
                            rightArrowClass: l7oM.rightArrowClass,
                            rtl: l7oM.rtl,
                            secText: l7oM.secText,
                            select: l7oM.select,
                            snap: l7oM.snap,
                            sort: l7oM.sort,
                            sortable: l7oM.sortable,
                            sortHandle: l7oM.sortHandle,
                            startIcon: l7oM.startIcon,
                            startText: l7oM.startText,
                            startYear: l7oM.startYear,
                            stepHour: l7oM.stepHour,
                            stepMinute: l7oM.stepMinute,
                            stepSecond: l7oM.stepSecond,
                            steps: l7oM.steps,
                            stopIcon: l7oM.stopIcon,
                            stopText: l7oM.stopText,
                            striped: l7oM.striped,
                            theme: l7oM.theme,
                            timeFormat: l7oM.timeFormat,
                            timeWheels: l7oM.timeWheels,
                            todayText: l7oM.todayText,
                            type: l7oM.type,
                            variant: l7oM.variant,
                            wrapperClass: l7oM.wrapperClass,
                            yearSuffix: l7oM.yearSuffix,
                            yearText: l7oM.yearText
                        }
                    };
                    var h1oM, t1oM, q1oM = [],
                        o1oM = {},
                        W1oM = ['refresh', 'redraw', 'navigate', 'showMonthView', 'changeTab', 'addValue', 'removeValue', 'getDate', 'setDate', 'addEvent', 'removeEvent', 'getEvents', 'setEvents', 'setActiveDate', 'start', 'stop', 'reset', 'lap', 'resetlap', 'getTime', 'setTime', 'getEllapsedTime', 'setEllapsedTime'],
                        a1oM = {
                            jsonp: 1,
                            getInst: 1,
                            init: 1,
                            destroy: 1
                        },
                        n1oM = function E1oM(P1oM) {
                            A7oM[P1oM] = function() {
                                q1oM.push({
                                    func: P1oM,
                                    args: arguments
                                });
                            };
                        };
                    for (t1oM in A7oM) {
                        if (typeof A7oM[t1oM] === 'function' && !a1oM[t1oM]) {
                            o1oM[t1oM] = A7oM[t1oM];
                            n1oM(t1oM);
                        }
                    }
                    for (h1oM = 0; h1oM < W1oM.length; h1oM++) {
                        n1oM(W1oM[h1oM]);
                    }
                    if (l7oM.preset == 'timer' && !r7oM.buttons) {
                        Y1oM.settings.buttons = ['toggle', 'resetlap'];
                        if (l7oM.display !== 'inline') {
                            Y1oM.settings.buttons.push('hide');
                        }
                    }
                    if (l7oM.preset == 'eventcalendar' && !r7oM.buttons && l7oM.display != 'inline') {
                        Y1oM.settings.buttons = ['close'];
                    }
                   
                        A7oM.zone.run(function() {
                           
                   
                            for (t1oM in o1oM) {
                                A7oM[t1oM] = o1oM[t1oM];
                            }
							
                            var V1oM = C2oM({}, r7oM);
                          
                            if (A7oM._hasPreset) {
                                T7oM = Y2oM.presets[A7oM._class][l7oM.preset];
                                if (T7oM) {
                                    T7oM = T7oM.call(b7oM, A7oM);
                                    C2oM(l7oM, T7oM, V1oM);
                                }
                            }
                            A7oM._init(C1oM);
                            f7oM('onInit');
                            for (h1oM = 0; h1oM < q1oM.length; h1oM++) {
                                A7oM[q1oM[h1oM].func].apply(A7oM, q1oM[h1oM].args);
                            }
                            q1oM = null;
                            o1oM = null;
                        });
                  
                }
            };
            A7oM.destroy = function() {
                if (A7oM) {
                    A7oM._destroy();
                    f7oM('onDestroy');
                    delete W2oM[b7oM.id];
                    A7oM = null;
                }
            };
            A7oM.tap = function(z1oM, l1oM, A1oM, r1oM, b1oM) {
                t86M(A7oM, z1oM, l1oM, A1oM, r1oM, b1oM);
            };
            A7oM.trigger = function(f1oM, k1oM) {
                var Q1oM, c1oM, T1oM, s1oM = [Q7oM, s7oM, T7oM, r7oM];
                for (c1oM = 0; c1oM < 4; c1oM++) {
                    T1oM = s1oM[c1oM];
                    if (T1oM && T1oM[f1oM]) {
                        Q1oM = T1oM[f1oM].call(b7oM, k1oM || {}, A7oM);
                    }
                }
                return Q1oM;
            };
            A7oM.option = function(i1oM, R1oM) {
                var v1oM = {};
                if ((typeof i1oM === 'undefined' ? 'undefined' : B66M(i1oM)) === 'object') {
                    v1oM = i1oM;
                } else {
                    v1oM[i1oM] = R1oM;
                }
                A7oM.init(v1oM);
            };
            A7oM.getInst = function() {
                return A7oM;
            };
            A7oM.zone = {
                run: function H1oM(X1oM) {
                    X1oM();
                }
            };
            r7oM = r7oM || {};
            f7oM = A7oM.trigger;
            if (!A7oM.__ready) {
                i7oM();
            }
        };
     
}())
	
    var u9HM = U9HM.$;
    var j9HM = u9HM.extend;
    var E46M = this && this.__extends || function() {
        var S1oM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(d8oM, M8oM) {
            d8oM.__proto__ = M8oM;
        } || function(N8oM, p8oM) {
            for (var Z8oM in p8oM) {
                if (p8oM.hasOwnProperty(Z8oM)) N8oM[Z8oM] = p8oM[Z8oM];
            }
        };
        return function(t8oM, D8oM) {
            function h8oM() {
                this.constructor = t8oM;
            }
            S1oM(t8oM, D8oM);
            t8oM.prototype = D8oM === null ? Object.create(D8oM) : (h8oM.prototype = D8oM.prototype, new h8oM());
        };
    }();
    var G9HM = function() {
        function q8oM() {
            this._controlSet = false;
            this._componentRef = undefined;
        }
        Object.defineProperty(q8oM.prototype, "isControlSet", {
            get: function o8oM() {
                return this._controlSet;
            },
            set: function Y8oM(n8oM) {
                this._controlSet = n8oM;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(q8oM.prototype, "input", {
            get: function C8oM() {
                return this._componentRef;
            },
            set: function W8oM(m8oM) {
                this._componentRef = m8oM;
            },
            enumerable: true,
            configurable: true
        });
        q8oM.decorators = [{
            type: J9HM.Injectable
        }];
        q8oM.ctorParameters = function() {
            return [];
        };
        return q8oM;
    }();
    var E66M = function() {
        function y8oM(a8oM) {
            this.initialElem = a8oM;
            this.options = {};
            this._instance = null;
            this.element = null;
        }
        Object.defineProperty(y8oM.prototype, "instance", {
            get: function E8oM() {
                return this._instance;
            },
            enumerable: true,
            configurable: true
        });
        y8oM.prototype.setElement = function() {
            this.element = this.initialElem.nativeElement;
            var P8oM = u9HM('input', this.initialElem.nativeElement);
            if (P8oM.length) {
                this.element = P8oM[0];
            }
        };
        y8oM.prototype.ngAfterViewInit = function() {
            this.setElement();
        };
        y8oM.prototype.ngOnDestroy = function() {
            if (this._instance) {
                this._instance.destroy();
            }
        };
        y8oM.propDecorators = {
            'options': [{
                type: J9HM.Input,
                args: ['mbsc-options']
            }]
        };
        return y8oM;
    }();
    var V26M = function(V8oM) {
        function K8oM(l8oM, A8oM) {
            var z8oM = V8oM.call(this, l8oM) || this;
            z8oM.zone = A8oM;
            z8oM.initialValue = undefined;
            return z8oM;
        }
        E46M(K8oM, V8oM);
        K8oM.prototype.setNewValueProxy = function(r8oM) {
            if (!this._instance) {
                this.initialValue = r8oM;
            }
            this.setNewValue(r8oM);
        };
        return K8oM;
    }(E66M);
    var S9HM = function(c8oM) {
        function b8oM(Q8oM, s8oM, k8oM, f8oM) {
            var T8oM = c8oM.call(this, Q8oM, s8oM) || this;
            T8oM.control = k8oM;
            T8oM._inputService = f8oM;
            T8oM._needsTimeout = true;
            T8oM.onChange = function() {};
            T8oM.onTouch = function() {};
            T8oM.onChangeEmitter = new J9HM.EventEmitter();
            T8oM.overwriteAccessor();
            if (f8oM) {
                f8oM.isControlSet = true;
            }
            return T8oM;
        }
        E46M(b8oM, c8oM);
        Object.defineProperty(b8oM.prototype, "optionExtensions", {
            get: function i8oM() {
                var v8oM = this.options && this.options.onClose;
                return {
                    onClose: function(R8oM, H8oM) {
                        this.onTouch();
                        if (v8oM) {
                            v8oM(R8oM, H8oM);
                        }
                    }.bind(this)
                };
            },
            enumerable: true,
            configurable: true
        });
        b8oM.prototype.handleChange = function() {
            var X8oM = this;
            u9HM(this.element).on('change', function() {
                X8oM.zone.run(function() {
                    var w8oM = X8oM._instance.getVal();
                    if (X8oM.control) {
                        X8oM.onChange(w8oM);
                        X8oM.control.control.patchValue(w8oM);
                    } else {
                        X8oM.onChangeEmitter.emit(w8oM);
                    }
                });
            });
        };
        b8oM.prototype.overwriteAccessor = function() {
            if (this.control) {
                if (this.control.valueAccessor !== this) {
                    this.oldAccessor = this.control.valueAccessor;
                }
                this.control.valueAccessor = this;
            }
        };
        b8oM.prototype.ngAfterViewInit = function() {
            c8oM.prototype.ngAfterViewInit.call(this);
            this.handleChange();
            this.overwriteAccessor();
            if (this.control && this.control._setUpControl) {
                this.control._setUpControl();
            }
        };
        b8oM.prototype.registerOnChange = function(B8oM) {
            this.onChange = B8oM;
        };
        b8oM.prototype.registerOnTouched = function(e8oM) {
            this.onTouch = e8oM;
        };
        b8oM.prototype.writeValue = function(F8oM) {
            var I8oM = this;
            if (this._needsTimeout) {
                setTimeout(function() {
                    I8oM.setNewValueProxy(F8oM);
                    I8oM.oldAccessorWrite(F8oM);
                });
            } else {
                this.setNewValueProxy(F8oM);
                this.oldAccessorWrite(F8oM);
            }
        };
        b8oM.prototype.oldAccessorWrite = function(g8oM) {
            if (this.oldAccessor) {
                if (this._instance) {
                    this.oldAccessor.writeValue(this._instance._value);
                } else {
                    this.oldAccessor.writeValue(g8oM);
                }
            }
        };
        return b8oM;
    }(V26M);
    var P36M = function(u8oM) {
        function O8oM(U8oM, j8oM, x8oM, L8oM) {
            var J8oM = u8oM.call(this, U8oM, j8oM, x8oM, L8oM) || this;
            J8oM.isMulti = undefined;
            J8oM.previousData = undefined;
            J8oM.noDataCheck = false;
            J8oM.data = undefined;
            return J8oM;
        }
        E46M(O8oM, u8oM);
        O8oM.prototype.setNewValue = function(S8oM) {
            if (this._instance) {
                var G8oM = void 0;
                if (this.isMulti) {
                    G8oM = !E36M(S8oM, this._instance.getVal());
                } else {
                    var d0oM = this._instance.getVal();
                    G8oM = d0oM !== S8oM;
                }
                if (G8oM) {
                    this._instance.setVal(S8oM, true, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        O8oM.prototype.cloneData = function() {
            this.previousData = this.data ? [] : this.data;
            if (this.data) {
                for (var M0oM = 0; M0oM < this.data.length; M0oM++) {
                    this.previousData.push(this.data[M0oM]);
                }
            }
        };
        O8oM.prototype.ngOnInit = function() {
            this.isMulti = this.options && this.options.select && this.options.select !== 'single';
        };
        O8oM.prototype.ngDoCheck = function() {
            if (this._instance && this.data !== undefined && !this.noDataCheck && !E36M(this.data, this.previousData)) {
                this.cloneData();
                this.refreshData(this.data);
            }
        };
        O8oM.propDecorators = {
            'noDataCheck': [{
                type: J9HM.Input,
                args: ['mbsc-no-data-check']
            }],
            'data': [{
                type: J9HM.Input,
                args: ['mbsc-data']
            }]
        };
        return O8oM;
    }(S9HM);
    var K46M;
    var V46M;
    var g66M = U9HM.util;
    var C76M = U9HM.classes;
    var j36M = U9HM.themes;
    var c46M = g66M.constrain;
    var z46M = g66M.isString;
    var o36M = g66M.getCoord;
    var n36M = g66M.animEnd;
    var N86M = /(iphone|ipod)/i.test(R36M) && p36M >= 7;
    var s26M = q66M == 'android';
    var R26M = q66M == 'ios';
    var p86M = R26M && p36M == 8;
    var D66M = function D0oM() {};
    var U26M = function t0oM(h0oM) {
        h0oM.preventDefault();
    };
    var V66M = function q0oM(x0oM, U0oM, q5oM) {
        function h5oM(o5oM) {
            if (K0oM) {
                K0oM.removeClass('mbsc-fr-btn-a');
            }
            K0oM = u9HM(this);
            if (!K0oM.hasClass('mbsc-fr-btn-d') && !K0oM.hasClass('mbsc-fr-btn-nhl')) {
                K0oM.addClass('mbsc-fr-btn-a');
            }
            if (o5oM.type === 'mousedown') {
                u9HM(document).on('mouseup', T0oM);
            } else if (o5oM.type === 'pointerdown') {
                u9HM(document).on('pointerup', T0oM);
            }
        }

        function T0oM(Y5oM) {
            if (K0oM) {
                K0oM.removeClass('mbsc-fr-btn-a');
                K0oM = null;
            }
            if (Y5oM.type === 'mouseup') {
                u9HM(document).off('mouseup', T0oM);
            } else if (Y5oM.type === 'pointerup') {
                u9HM(document).off('pointerup', T0oM);
            }
        }

        function M5oM(n5oM) {
            if (n5oM.keyCode == 13) {
                o0oM.select();
            } else if (n5oM.keyCode == 27) {
                o0oM.cancel();
            }
        }

        function Z5oM(C5oM) {
            if (!C5oM && !s26M) {
                i0oM.focus();
            }
            o0oM.ariaMessage(Y0oM.ariaMessage);
        }

        function p5oM(y5oM) {
            var m5oM = K46M,
                W5oM = Y0oM.focusOnClose;
            o0oM._markupRemove();
            n0oM.remove();
            if (m0oM) {
                y0oM.mbscModals--;
                if (Y0oM.scrollLock) {
                    y0oM.mbscLock--;
                }
                if (!y0oM.mbscLock) {
                    s0oM.removeClass('mbsc-fr-lock');
                }
                if (!y0oM.mbscModals) {
                    s0oM.removeClass('mbsc-fr-lock-ios mbsc-fr-lock-ctx');
                    if (Q0oM) {
                        V0oM.css({
                            top: '',
                            left: ''
                        });
                        E0oM.scrollLeft(X0oM);
                        E0oM.scrollTop(F0oM);
                    }
                    if (!y5oM) {
                        if (!m5oM) {
                            m5oM = C0oM;
                        }
                        setTimeout(function() {
                            if (W5oM === undefined || W5oM === true) {
                                V46M = true;
                                m5oM[0].focus();
                            } else if (W5oM) {
                                u9HM(W5oM)[0].focus();
                            }
                        }, 200);
                    }
                }
            }
            o0oM._isVisible = false;
            I0oM = false;
            a0oM('onHide');
        }

        function N5oM(a5oM) {
            clearTimeout(O0oM[a5oM.type]);
            O0oM[a5oM.type] = setTimeout(function() {
                var P5oM, E5oM = a5oM.type == 'scroll';
                if (E5oM && !R0oM) {
                    return;
                }
                o0oM.position(!E5oM);
                if (a5oM.type == 'orientationchange') {
                    r0oM.style.display = 'none';
                    P5oM = r0oM.offsetHeight;
                    r0oM.style.display = '';
                }
            }, 200);
        }

        function D5oM(K5oM) {
            if (K5oM.target.nodeType && !i0oM.contains(K5oM.target)) {
                i0oM.focus();
            }
        }

        function H0oM(V5oM, z5oM) {
            if (V5oM) {
                V5oM();
            }
            if (o0oM.show() !== false) {
                K46M = z5oM;
            }
        }

        function S0oM() {
            o0oM._fillValue();
            a0oM('onSet', {
                valueText: o0oM._value
            });
        }

        function d5oM() {
            a0oM('onCancel', {
                valueText: o0oM._value
            });
        }

        function t5oM() {
            o0oM.setVal(null, true);
        }
        var J0oM, V0oM, L0oM, s0oM, n0oM, v0oM, j0oM, c0oM, E0oM, u0oM, b0oM, K0oM, y0oM, W0oM, z0oM, m0oM, I0oM, l0oM, A0oM, P0oM, f0oM, Q0oM, i0oM, r0oM, k0oM, w0oM, Y0oM, X0oM, R0oM, F0oM, G0oM, a0oM, B0oM, e0oM, o0oM = this,
            C0oM = u9HM(x0oM),
            g0oM = [],
            O0oM = {};
        C76M.Base.call(this, x0oM, U0oM, true);
        o0oM.position = function(O5oM) {
            var k5oM, I5oM, R5oM, H5oM, f5oM, w5oM, B5oM, e5oM, F5oM, X5oM, g5oM, l5oM, r5oM, i5oM, b5oM, T5oM, v5oM = {},
                c5oM = 0,
                A5oM = 0,
                Q5oM = 0,
                s5oM = 0;
            if (w0oM || !I0oM) {
                return;
            }
            o0oM._position(n0oM);
            l5oM = l0oM.offsetHeight;
            r5oM = l0oM.offsetWidth;
            if (B0oM === r5oM && e0oM === l5oM && O5oM) {
                return;
            }
            if (o0oM._isFullScreen || /top|bottom/.test(Y0oM.display)) {
                c0oM.width(r5oM);
            } else {
                u0oM.width('');
            }
            if (a0oM('onPosition', {
                    target: l0oM,
                    windowWidth: r5oM,
                    windowHeight: l5oM
                }) === false || !m0oM) {
                return;
            }
            u9HM('.mbsc-comp', n0oM).each(function() {
                var u5oM = U9HM.instances[this.id];
                if (u5oM && u5oM !== o0oM && u5oM.position) {
                    u5oM.position();
                }
            });
            if (!o0oM._isFullScreen && /center|bubble/.test(Y0oM.display)) {
                u9HM('.mbsc-w-p', n0oM).each(function() {
                    i5oM = this.getBoundingClientRect().width;
                    s5oM += i5oM;
                    Q5oM = i5oM > Q5oM ? i5oM : Q5oM;
                });
                u0oM.css({
                    'width': o0oM._isLiquid ? Math.min(Y0oM.maxPopupWidth, r5oM - 16) : Math.ceil(s5oM > r5oM ? Q5oM : s5oM),
                    'white-space': s5oM > r5oM ? '' : 'nowrap'
                });
            }
            A0oM = r0oM.offsetWidth;
            P0oM = r0oM.offsetHeight;
            R0oM = P0oM <= l5oM && A0oM <= r5oM;
            if (f0oM) {
                c5oM = E0oM.scrollLeft();
                A5oM = E0oM.scrollTop();
            }
            if (Y0oM.display == 'center') {
                T5oM = Math.max(0, c5oM + (r5oM - A0oM) / 2);
                b5oM = Math.max(0, A5oM + (l5oM - P0oM) / 2);
            } else if (Y0oM.display == 'bubble') {
                k5oM = Y0oM.anchor === undefined ? C0oM : u9HM(Y0oM.anchor);
                B5oM = u9HM('.mbsc-fr-arr-i', n0oM)[0];
                H5oM = k5oM.offset();
                f5oM = H5oM.top + (z0oM ? A5oM - V0oM.offset().top : 0);
                w5oM = H5oM.left + (z0oM ? c5oM - V0oM.offset().left : 0);
                I5oM = k5oM[0].offsetWidth;
                R5oM = k5oM[0].offsetHeight;
                e5oM = B5oM.offsetWidth;
                F5oM = B5oM.offsetHeight;
                T5oM = c46M(w5oM - (A0oM - I5oM) / 2, c5oM + 8, c5oM + r5oM - A0oM - 8);
                b5oM = f5oM - P0oM - F5oM / 2;
                if (b5oM < A5oM || f5oM > A5oM + l5oM) {
                    c0oM.removeClass('mbsc-fr-bubble-top').addClass('mbsc-fr-bubble-bottom');
                    b5oM = f5oM + R5oM + F5oM / 2;
                } else {
                    c0oM.removeClass('mbsc-fr-bubble-bottom').addClass('mbsc-fr-bubble-top');
                }
                u9HM('.mbsc-fr-arr', n0oM).css({
                    left: c46M(w5oM + I5oM / 2 - (T5oM + (A0oM - e5oM) / 2), 0, e5oM)
                });
                R0oM = b5oM > A5oM && T5oM > c5oM && b5oM + P0oM <= A5oM + l5oM && T5oM + A0oM <= c5oM + r5oM;
            } else {
                T5oM = c5oM;
                b5oM = Y0oM.display == 'top' ? A5oM : Math.max(0, A5oM + l5oM - P0oM);
            }
            if (f0oM) {
                X5oM = Math.max(b5oM + P0oM, z0oM ? y0oM.scrollHeight : u9HM(document).height());
                g5oM = Math.max(T5oM + A0oM, z0oM ? y0oM.scrollWidth : u9HM(document).width());
                j0oM.css({
                    width: g5oM,
                    height: X5oM
                });
                if (Y0oM.scroll && Y0oM.display == 'bubble' && (b5oM + P0oM + 8 > A5oM + l5oM || f5oM > A5oM + l5oM || f5oM + R5oM < A5oM)) {
                    w0oM = true;
                    setTimeout(function() {
                        w0oM = false;
                    }, 300);
                    E0oM.scrollTop(Math.min(f5oM, b5oM + P0oM - l5oM + 8, X5oM - l5oM));
                }
            }
            v5oM.top = Math.floor(b5oM);
            v5oM.left = Math.floor(T5oM);
            c0oM.css(v5oM);
            B0oM = r5oM;
            e0oM = l5oM;
        };
        o0oM.attachShow = function(L5oM, j5oM) {
            var U5oM, J5oM = u9HM(L5oM),
                x5oM = J5oM.prop('readonly');
            if (Y0oM.display !== 'inline') {
                if ((Y0oM.showOnFocus || Y0oM.showOnTap) && J5oM.is('input,select')) {
                    J5oM.prop('readonly', true).on('mousedown.mbsc', function(G5oM) {
                        G5oM.preventDefault();
                    }).on('focus.mbsc', function() {
                        if (o0oM._isVisible) {
                            this.blur();
                        }
                    });
                    U5oM = u9HM('label[for="' + J5oM.attr('id') + '"]');
                    if (!U5oM.length) {
                        U5oM = J5oM.closest('label');
                    }
                }
                if (J5oM.is('select')) {
                    return;
                }
                if (Y0oM.showOnFocus) {
                    J5oM.on('focus.mbsc', function() {
                        if (!V46M) {
                            H0oM(j5oM, J5oM);
                        } else {
                            V46M = false;
                        }
                    });
                }
                if (Y0oM.showOnTap) {
                    J5oM.on('keydown.mbsc', function(S5oM) {
                        if (S5oM.keyCode == 32 || S5oM.keyCode == 13) {
                            S5oM.preventDefault();
                            S5oM.stopPropagation();
                            H0oM(j5oM, J5oM);
                        }
                    });
                    o0oM.tap(J5oM, function() {
                        H0oM(j5oM, J5oM);
                    });
                    if (U5oM && U5oM.length) {
                        o0oM.tap(U5oM, function() {
                            H0oM(j5oM, J5oM);
                        });
                    }
                }
                g0oM.push({
                    readOnly: x5oM,
                    el: J5oM,
                    lbl: U5oM
                });
            }
        };
        o0oM.select = function() {

            if (m0oM) {
                o0oM.hide(false, 'set', false, S0oM);
            } else {
                S0oM();
            }
        };
        o0oM.cancel = function() {
            if (m0oM) {
                o0oM.hide(false, 'cancel', false, d5oM);
            } else {
                d5oM();
            }
        };
        o0oM.clear = function() {
            o0oM._clearValue();
            a0oM('onClear');
            if (m0oM && o0oM._isVisible && !o0oM.live) {
                o0oM.hide(false, 'clear', false, t5oM);
            } else {
                t5oM();
            }
        };
        o0oM.enable = function() {
            Y0oM.disabled = false;
            if (o0oM._isInput) {
                C0oM.prop('disabled', false);
            }
        };
        o0oM.disable = function() {
            Y0oM.disabled = true;
            if (o0oM._isInput) {
                C0oM.prop('disabled', true);
            }
        };
        o0oM.show = function(h9oM, p9oM) {
            function N9oM() {
                n0oM.off(n36M, N9oM).removeClass('mbsc-anim-in mbsc-anim-trans mbsc-anim-trans-' + W0oM).find('.mbsc-fr-popup').removeClass('mbsc-anim-' + W0oM);
                Z5oM(p9oM);
            }
            var q9oM, M9oM;
            if (Y0oM.disabled || o0oM._isVisible) {
                return;
            }
            o0oM._readValue();
            if (a0oM('onBeforeShow') === false) {
                return false;
            }
            K46M = null;
            W0oM = Y0oM.animate;
            b0oM = Y0oM.buttons || [];
            f0oM = z0oM || Y0oM.display == 'bubble';
            Q0oM = N86M && !f0oM && Y0oM.scrollLock;
            q9oM = b0oM.length > 0;
            if (W0oM !== false) {
                if (Y0oM.display == 'top') {
                    W0oM = W0oM || 'slidedown';
                } else if (Y0oM.display == 'bottom') {
                    W0oM = W0oM || 'slideup';
                } else if (Y0oM.display == 'center' || Y0oM.display == 'bubble') {
                    W0oM = W0oM || 'pop';
                }
            }
            if (m0oM) {
                F0oM = Math.max(0, E0oM.scrollTop());
                X0oM = Math.max(0, E0oM.scrollLeft());
                B0oM = 0;
                e0oM = 0;
                if (Q0oM && !s0oM.hasClass('mbsc-fr-lock-ios')) {
                    V0oM.css({
                        top: -F0oM + 'px',
                        left: -X0oM + 'px'
                    });
                }
                s0oM.addClass((Y0oM.scrollLock ? 'mbsc-fr-lock' : '') + (Q0oM ? ' mbsc-fr-lock-ios' : '') + (z0oM ? ' mbsc-fr-lock-ctx' : ''));
                if (u9HM(document.activeElement).is('input,textarea')) {
                    document.activeElement.blur();
                }
                if (U9HM.activeInstance) {
                    U9HM.activeInstance.hide();
                }
                U9HM.activeInstance = o0oM;
                y0oM.mbscModals = y0oM.mbscModals || 0;
                y0oM.mbscLock = y0oM.mbscLock || 0;
                y0oM.mbscModals++;
                if (Y0oM.scrollLock) {
                    y0oM.mbscLock++;
                }
            }
		  M9oM = '<div lang="' + Y0oM.lang + '" class="mbsc-fr mbsc-no-touch mbsc-' + Y0oM.theme + (Y0oM.baseTheme ? ' mbsc-' + Y0oM.baseTheme : '') + ' mbsc-fr-' + Y0oM.display + ' ' + (Y0oM.cssClass || '') + ' ' + (Y0oM.compClass || '') + (o0oM._isLiquid ? ' mbsc-fr-liq' : '') +  (Q0oM ? ' mbsc-platform-ios' : '') + (q9oM ? b0oM.length >= 3 ? ' mbsc-fr-btn-block ' : '' : ' mbsc-fr-nobtn') + '">' + (m0oM ? '<div class="mbsc-fr-persp"><div class="mbsc-fr-overlay"></div><div role="dialog" tabindex="-1" class="mbsc-fr-scroll">' : '') + '<div class="mbsc-fr-popup' + (Y0oM.rtl ? ' mbsc-rtl' : ' mbsc-ltr') + (Y0oM.headerText ? ' mbsc-fr-has-hdr' : '') + '">' + (Y0oM.display === 'bubble' ? '<div class="mbsc-fr-arr-w"><div class="mbsc-fr-arr-i"><div class="mbsc-fr-arr"></div></div></div>' : '') + '<div class="mbsc-fr-w"><div aria-live="assertive" class="mbsc-fr-aria mbsc-fr-hdn"></div>' + (Y0oM.headerText ? '<div class="mbsc-fr-hdr">' + (z46M(Y0oM.headerText) ? Y0oM.headerText : '') + '</div>' : '') + '<div class="mbsc-fr-c">';
			M9oM += o0oM._generateContent();
			M9oM += '</div>';
			if (q9oM) {
				M9oM += '<div class="mbsc-fr-btn-cont">';
				u9HM.each(b0oM, function(b, a) {
					a = z46M(a) ? o0oM.buttons[a] : a;
					if (a.handler === 'set') {
						a.parentClass = 'mbsc-fr-btn-s';
					}
					if (a.handler === 'cancel') {
						a.parentClass = 'mbsc-fr-btn-c';
					}
					M9oM += '<div' + (Y0oM.btnWidth ? ' style="width:' + 100 / b0oM.length + '%"' : '') + ' class="mbsc-fr-btn-w ' + (a.parentClass || '') + '"><div tabindex="0" role="button" class="mbsc-fr-btn' + b + ' mbsc-fr-btn-e ' + (a.cssClass === undefined ? Y0oM.btnClass : a.cssClass) + (a.icon ? ' mbsc-ic mbsc-ic-' + a.icon : '') + '">' + (a.text || '') + '</div></div>';
				});
				M9oM += '</div>';
			}
			M9oM += '</div></div></div></div>' + (m0oM ? '</div></div>' : '');
            n0oM = u9HM(M9oM);
            j0oM = u9HM('.mbsc-fr-persp', n0oM);
            v0oM = u9HM('.mbsc-fr-scroll', n0oM);
            u0oM = u9HM('.mbsc-fr-w', n0oM);
            L0oM = u9HM('.mbsc-fr-hdr', n0oM);
            c0oM = u9HM('.mbsc-fr-popup', n0oM);
            J0oM = u9HM('.mbsc-fr-aria', n0oM);
            l0oM = n0oM[0];
            i0oM = v0oM[0];
            r0oM = c0oM[0];
            o0oM._markup = n0oM;
            o0oM._header = L0oM;
            o0oM._isVisible = true;
            k0oM = 'orientationchange resize';
            o0oM._markupReady(n0oM);
            a0oM('onMarkupReady', {
                target: l0oM
            });
            if (m0oM) {
                u9HM(window).on('keydown', M5oM);
                if (Y0oM.scrollLock) {
                    n0oM.on('touchmove mousewheel wheel', function(o9oM) {
                        if (R0oM) {
                            o9oM.preventDefault();
                        }
                    });
                }
                if (Y0oM.focusTrap) {
                    E0oM.on('focusin', D5oM);
                }
                if (Y0oM.closeOnOverlayTap) {
                    var Z9oM, d9oM, D9oM, t9oM;
                    v0oM.on('touchstart mousedown', function(Y9oM) {
                        if (!d9oM && Y9oM.target == v0oM[0]) {
                            d9oM = true;
                            Z9oM = false;
                            D9oM = o36M(Y9oM, 'X');
                            t9oM = o36M(Y9oM, 'Y');
                        }
                    }).on('touchmove mousemove', function(n9oM) {
                        if (d9oM && !Z9oM && (Math.abs(o36M(n9oM, 'X') - D9oM) > 9 || Math.abs(o36M(n9oM, 'Y') - t9oM) > 9)) {
                            Z9oM = true;
                        }
                    }).on('touchcancel', function() {
                        d9oM = false;
                    }).on('touchend touchcancel mouseup', function(C9oM) {
                        if (d9oM && !Z9oM) {
                            o0oM.cancel();
                            if (C9oM.type != 'mouseup') {
                                g66M.preventClick();
                            }
                        }
                        d9oM = false;
                    });
                }
                if (f0oM) {
                    k0oM += ' scroll';
                }
            }
            setTimeout(function() {
                if (m0oM) {
                    n0oM.appendTo(V0oM);
                } else if (C0oM.is('div') && !o0oM._hasContent) {
                    C0oM.empty().append(n0oM);
                } else {
                    if (C0oM.hasClass('mbsc-control')) {
                        var W9oM = C0oM.closest('.mbsc-control-w');
                        n0oM.insertAfter(W9oM);
                        if (W9oM.hasClass('mbsc-select')) {
                            W9oM.addClass('mbsc-select-inline');
                        }
                    } else {
                        n0oM.insertAfter(C0oM);
                    }
                }
                I0oM = true;
                o0oM._markupInserted(n0oM);
                a0oM('onMarkupInserted', {
                    target: l0oM
                });
                n0oM.on('selectstart mousedown', U26M).on('click', '.mbsc-fr-btn-e', U26M).on('keydown', '.mbsc-fr-btn-e', function(m9oM) {
                    if (m9oM.keyCode == 32) {
                        m9oM.preventDefault();
                        m9oM.stopPropagation();
                        this.click();
                    }
                }).on('keydown', function(y9oM) {
                    if (y9oM.keyCode == 32) {
                        y9oM.preventDefault();
                    } else if (y9oM.keyCode == 9 && m0oM && Y0oM.focusTrap) {
                        var a9oM = n0oM.find('[tabindex="0"]').filter(function() {
                                return this.offsetWidth > 0 || this.offsetHeight > 0;
                            }),
                            K9oM = a9oM.index(u9HM(':focus', n0oM)),
                            E9oM = a9oM.length - 1,
                            P9oM = 0;
                        if (y9oM.shiftKey) {
                            E9oM = 0;
                            P9oM = -1;
                        }
                        if (K9oM === E9oM) {
                            a9oM.eq(P9oM)[0].focus();
                            y9oM.preventDefault();
                        }
                    }
                }).on('touchstart mousedown pointerdown', '.mbsc-fr-btn-e', h5oM).on('touchend', '.mbsc-fr-btn-e', T0oM);
                u9HM('input,select,textarea', n0oM).on('selectstart mousedown', function(V9oM) {
                    V9oM.stopPropagation();
                }).on('keydown', function(z9oM) {
                    if (z9oM.keyCode == 32) {
                        z9oM.stopPropagation();
                    }
                });
                l0oM.addEventListener('touchstart', function() {
                    if (!G0oM) {
                        G0oM = true;
                        V0oM.find('.mbsc-no-touch').removeClass('mbsc-no-touch');
                    }
                }, true);
                u9HM.each(b0oM, function(A9oM, l9oM) {
                    o0oM.tap(u9HM('.mbsc-fr-btn' + A9oM, n0oM), function(r9oM) {
                        l9oM = z46M(l9oM) ? o0oM.buttons[l9oM] : l9oM;
                        (z46M(l9oM.handler) ? o0oM.handlers[l9oM.handler] : l9oM.handler).call(this, r9oM, o0oM);
                    }, true);
                });
                o0oM._attachEvents(n0oM);
                o0oM.position();
                E0oM.on(k0oM, N5oM);
                if (m0oM) {
                    if (W0oM && !h9oM) {
                        n0oM.addClass('mbsc-anim-in mbsc-anim-trans mbsc-anim-trans-' + W0oM).on(n36M, N9oM).find('.mbsc-fr-popup').addClass('mbsc-anim-' + W0oM);
                    } else {
                        Z5oM(p9oM);
                    }
                }
                a0oM('onShow', {
                    target: l0oM,
                    valueText: o0oM._tempValue
                });
            }, Q0oM ? 100 : 0);
        };
        o0oM.hide = function(b9oM, c9oM, T9oM, f9oM) {
            function Q9oM() {
                n0oM.off(n36M, Q9oM);
                p5oM(b9oM);
            }
            if (!o0oM._isVisible || !T9oM && !o0oM._isValid && c9oM == 'set' || !T9oM && a0oM('onBeforeClose', {
                    valueText: o0oM._tempValue,
                    button: c9oM
                }) === false) {
                return false;
            }
            if (m0oM) {
                if (u9HM(document.activeElement).is('input,textarea') && r0oM.contains(document.activeElement)) {
                    document.activeElement.blur();
                }
                u9HM(window).off('keydown', M5oM);
                delete U9HM.activeInstance;
            }
            if (n0oM) {
                if (m0oM && W0oM && !b9oM) {
                    n0oM.addClass('mbsc-anim-out mbsc-anim-trans mbsc-anim-trans-' + W0oM).on(n36M, Q9oM).find('.mbsc-fr-popup').addClass('mbsc-anim-' + W0oM);
                } else {
                    p5oM(b9oM);
                }
                o0oM._detachEvents(n0oM);
                E0oM.off(k0oM, N5oM).off('focusin', D5oM);
            }
            if (f9oM) {
                f9oM();
            }
            a0oM('onClose', {
                valueText: o0oM._value
            });
        };
        o0oM.ariaMessage = function(s9oM) {
            J0oM.html('');
            setTimeout(function() {
                J0oM.html(s9oM);
            }, 100);
        };
        o0oM.isVisible = function() {
            return o0oM._isVisible;
        };
        o0oM.setVal = D66M;
        o0oM.getVal = D66M;
        o0oM._generateContent = D66M;
        o0oM._attachEvents = D66M;
        o0oM._detachEvents = D66M;
        o0oM._readValue = D66M;
        o0oM._clearValue = D66M;
        o0oM._fillValue = D66M;
        o0oM._markupReady = D66M;
        o0oM._markupInserted = D66M;
        o0oM._markupRemove = D66M;
        o0oM._position = D66M;
        o0oM.__processSettings = D66M;
        o0oM.__init = D66M;
        o0oM.__destroy = D66M;
        o0oM._destroy = function() {
            o0oM.hide(true, false, true);
            C0oM.off('.mbsc');
            u9HM.each(g0oM, function(i9oM, k9oM) {
                k9oM.el.off('.mbsc').prop('readonly', k9oM.readOnly);
                if (k9oM.lbl) {
                    k9oM.lbl.off('.mbsc');
                }
            });
            o0oM.__destroy();
        };
        o0oM._processSettings = function() {
            var v9oM, R9oM;
            o0oM.__processSettings();
            Y0oM.buttons = Y0oM.buttons || (Y0oM.display !== 'inline' ? ['set', 'cancel'] : []);
            Y0oM.headerText = Y0oM.headerText === undefined ? Y0oM.display !== 'inline' ? '{value}' : false : Y0oM.headerText;
            b0oM = Y0oM.buttons || [];
            m0oM = Y0oM.display !== 'inline';
            z0oM = Y0oM.context != 'body';
            V0oM = u9HM(Y0oM.context);
            s0oM = z0oM ? V0oM : u9HM('body,html');
            y0oM = V0oM[0];
            o0oM._window = E0oM = u9HM(z0oM ? Y0oM.context : window);
            o0oM.live = true;
            for (R9oM = 0; R9oM < b0oM.length; R9oM++) {
                v9oM = b0oM[R9oM];
                if (v9oM == 'ok' || v9oM == 'set' || v9oM.handler == 'set') {
                    o0oM.live = false;
                }
            }
            o0oM.buttons.set = {
                text: Y0oM.setText,
                icon: Y0oM.setIcon,
                handler: 'set'
            };
            o0oM.buttons.cancel = {
                text: Y0oM.cancelText,
                icon: Y0oM.cancelIcon,
                handler: 'cancel'
            };
            o0oM.buttons.close = {
                text: Y0oM.closeText,
                icon: Y0oM.closeIcon,
                handler: 'cancel'
            };
            o0oM.buttons.clear = {
                text: Y0oM.clearText,
                icon: Y0oM.clearIcon,
                handler: 'clear'
            };
            o0oM._isInput = C0oM.is('input');
        };
        o0oM._init = function() {
            if (o0oM._isVisible) {
                o0oM.hide(true, false, true);
            }
            C0oM.off('.mbsc');
            o0oM.__init();
            o0oM._isLiquid = Y0oM.layout == 'liquid';
            if (m0oM) {
                o0oM._readValue();
                if (!o0oM._hasContent) {
                    o0oM.attachShow(C0oM);
                }
            } else {
                o0oM.show();
            }
            C0oM.on('change.mbsc', function() {
                if (!o0oM._preventChange) {
                    o0oM.setVal(C0oM.val(), true, false);
                }
                o0oM._preventChange = false;
            });
        };
        o0oM.buttons = {};
        o0oM.handlers = {
            set: o0oM.select,
            cancel: o0oM.cancel,
            clear: o0oM.clear
        };
        o0oM._value = null;
        o0oM._isValid = true;
        o0oM._isVisible = false;
        Y0oM = o0oM.settings;
        a0oM = o0oM.trigger;
        if (!q5oM) {
            o0oM.init(U0oM);
        }
    };
    V66M.prototype._defaults = {
        lang: 'en',
        setText: 'Set',
        selectedText: '{count} selected',
        closeText: 'Close',
        cancelText: 'Cancel',
        clearText: 'Clear',
        context: 'body',
        maxPopupWidth: 600,
        disabled: false,
        closeOnOverlayTap: true,
        showOnFocus: s26M || R26M,
        showOnTap: true,
        display: 'center',
        scroll: true,
        scrollLock: true,
        tap: true,
        btnClass: 'mbsc-fr-btn',
        btnWidth: true,
        focusTrap: true,
        focusOnClose: !p86M
    };
    C76M.Frame = V66M;
    j36M.frame.mobiscroll = {
        headerText: false,
        btnWidth: false
    };
    j36M.scroller.mobiscroll = j9HM({}, j36M.frame.mobiscroll, {
        rows: 5,
        showLabel: false,
        selectedLineBorder: 1,
        weekDays: 'min',
        checkIcon: 'ion-ios7-checkmark-empty',
        btnPlusClass: 'mbsc-ic mbsc-ic-arrow-down5',
        btnMinusClass: 'mbsc-ic mbsc-ic-arrow-up5',
        btnCalPrevClass: 'mbsc-ic mbsc-ic-arrow-left5',
        btnCalNextClass: 'mbsc-ic mbsc-ic-arrow-right5'
    });
    if (Y66M) {
        u9HM(window).on('focus', function() {
            if (K46M) {
                V46M = true;
            }
        });
    }
    var K76M = U9HM.classes;
    var K66M = U9HM.util;
    var T66M = K66M.constrain;
    var f46M = K66M.jsPrefix;
    var M86M = K66M.prefix;
    var l36M = K66M.getCoord;
    var g46M = K66M.getPosition;
    var S16M = K66M.testTouch;
    var r36M = K66M.isNumeric;
    var x16M = K66M.isString;
    var J16M = q66M == 'ios';
    var s36M = function H9oM(p6XM, z6XM, X6XM) {
        function k6XM(w6XM) {
            J9oM('onStart', {
                domEvent: w6XM
            });
            if (X9oM.stopProp) {
                w6XM.stopPropagation();
            }
            if (X9oM.prevDef || w6XM.type == 'mousedown') {
                w6XM.preventDefault();
            }
            if (X9oM.readonly || X9oM.lock && M6XM) {
                return;
            }
            if (S16M(w6XM, this) && !Y6XM) {
                if (U9oM) {
                    U9oM.removeClass('mbsc-btn-a');
                }
                t6XM = false;
                if (!M6XM) {
                    U9oM = u9HM(w6XM.target).closest('.mbsc-btn-e', this);
                    if (U9oM.length && !U9oM.hasClass('mbsc-btn-d')) {
                        t6XM = true;
                        b6XM = setTimeout(function() {
                            U9oM.addClass('mbsc-btn-a');
                        }, 100);
                    }
                }
                Y6XM = true;
                N6XM = false;
                D6XM = false;
                e9oM.scrolled = M6XM;
                V6XM = l36M(w6XM, 'X');
                R6XM = l36M(w6XM, 'Y');
                l6XM = H6XM = V6XM;
                n6XM = 0;
                q6XM = 0;
                F9oM = 0;
                s6XM = new Date();
                O9oM = +g46M(G9oM, w9oM) || 0;
                if (M6XM) {
                    W6XM(O9oM, J16M ? 0 : 1);
                }
                if (w6XM.type === 'mousedown') {
                    u9HM(document).on('mousemove', C6XM).on('mouseup', E6XM);
                }
            }
        }

        function C6XM(B6XM) {
            if (Y6XM) {
                if (X9oM.stopProp) {
                    B6XM.stopPropagation();
                }
                l6XM = l36M(B6XM, 'X');
                T6XM = l36M(B6XM, 'Y');
                n6XM = l6XM - V6XM;
                q6XM = T6XM - R6XM;
                F9oM = w9oM ? q6XM : n6XM;
                if (t6XM && (Math.abs(q6XM) > X9oM.thresholdY || Math.abs(n6XM) > X9oM.thresholdX)) {
                    clearTimeout(b6XM);
                    U9oM.removeClass('mbsc-btn-a');
                    t6XM = false;
                }
                if (e9oM.scrolled || !D6XM && Math.abs(F9oM) > Q6XM) {
                    if (!N6XM) {
                        J9oM('onGestureStart', B9oM);
                    }
                    e9oM.scrolled = N6XM = true;
                    if (!Z6XM) {
                        Z6XM = true;
                        a6XM = t46M(v6XM);
                    }
                }
                if (w9oM || X9oM.scrollLock) {
                    B6XM.preventDefault();
                } else {
                    if (e9oM.scrolled) {
                        B6XM.preventDefault();
                    } else if (Math.abs(q6XM) > 7) {
                        D6XM = true;
                        e9oM.scrolled = true;
                        L9oM.trigger('touchend');
                    }
                }
            }
        }

        function v6XM() {
            if (d6XM) {
                F9oM = T66M(F9oM, -g9oM * d6XM, g9oM * d6XM);
            }
            W6XM(T66M(O9oM + F9oM, x9oM - A6XM, j9oM + A6XM));
            Z6XM = false;
        }

        function E6XM(I6XM) {
            if (Y6XM) {
                var e6XM, F6XM = new Date() - s6XM;
                if (X9oM.stopProp) {
                    I6XM.stopPropagation();
                }
                o46M(a6XM);
                Z6XM = false;
                if (!D6XM && e9oM.scrolled) {
                    if (X9oM.momentum && F6XM < 300) {
                        e6XM = F9oM / F6XM;
                        F9oM = Math.max(Math.abs(F9oM), e6XM * e6XM / X9oM.speedUnit) * (F9oM < 0 ? -1 : 1);
                    }
                    i6XM(F9oM);
                }
                if (t6XM) {
                    clearTimeout(b6XM);
                    U9oM.addClass('mbsc-btn-a');
                    setTimeout(function() {
                        U9oM.removeClass('mbsc-btn-a');
                    }, 100);
                    if (!D6XM && !e9oM.scrolled) {
                        J9oM('onBtnTap', {
                            target: U9oM[0]
                        });
                    }
                }
                if (I6XM.type == 'mouseup') {
                    u9HM(document).off('mousemove', C6XM).off('mouseup', E6XM);
                }
                Y6XM = false;
            }
        }

        function c6XM(g6XM) {
            g6XM = g6XM.originalEvent || g6XM;
            F9oM = w9oM ? g6XM.deltaY || g6XM.wheelDelta || g6XM.detail : g6XM.deltaX;
            J9oM('onStart', {
                domEvent: g6XM
            });
            if (X9oM.stopProp) {
                g6XM.stopPropagation();
            }
            if (F9oM) {
                g6XM.preventDefault();
                if (g6XM.deltaMode && g6XM.deltaMode == 1) {
                    F9oM *= 5;
                }
                F9oM = T66M(-F9oM, -20, 20);
                O9oM = I9oM;
                if (X9oM.readonly || O9oM + F9oM < x9oM || O9oM + F9oM > j9oM) {
                    return;
                }
                if (!N6XM) {
                    B9oM = {
                        posX: w9oM ? 0 : I9oM,
                        posY: w9oM ? I9oM : 0,
                        originX: w9oM ? 0 : O9oM,
                        originY: w9oM ? O9oM : 0,
                        direction: F9oM > 0 ? w9oM ? 270 : 360 : w9oM ? 90 : 180
                    };
                    J9oM('onGestureStart', B9oM);
                }
                if (!Z6XM) {
                    Z6XM = true;
                    a6XM = t46M(v6XM);
                }
                N6XM = true;
                clearTimeout(f6XM);
                f6XM = setTimeout(function() {
                    o46M(a6XM);
                    Z6XM = false;
                    N6XM = false;
                    i6XM(F9oM);
                }, 200);
            }
        }

        function i6XM(J6XM) {
            var O6XM, U6XM, u6XM;
            if (d6XM) {
                J6XM = T66M(J6XM, -g9oM * d6XM, g9oM * d6XM);
            }
            u6XM = T66M(Math.round((O9oM + J6XM) / g9oM) * g9oM, x9oM, j9oM);
            S9oM = Math.round(u6XM / g9oM);
            if (u9oM) {
                if (J6XM < 0) {
                    for (O6XM = u9oM.length - 1; O6XM >= 0; O6XM--) {
                        if (Math.abs(u6XM) + o6XM >= u9oM[O6XM].breakpoint) {
                            S9oM = O6XM;
                            y6XM = 2;
                            u6XM = u9oM[O6XM].snap2;
                            break;
                        }
                    }
                } else if (J6XM >= 0) {
                    for (O6XM = 0; O6XM < u9oM.length; O6XM++) {
                        if (Math.abs(u6XM) <= u9oM[O6XM].breakpoint) {
                            S9oM = O6XM;
                            y6XM = 1;
                            u6XM = u9oM[O6XM].snap1;
                            break;
                        }
                    }
                }
                u6XM = T66M(u6XM, x9oM, j9oM);
            }
            U6XM = X9oM.time || (I9oM < x9oM || I9oM > j9oM ? 1000 : Math.max(1000, Math.abs(u6XM - I9oM) * X9oM.timeUnit));
            B9oM.destinationX = w9oM ? 0 : u6XM;
            B9oM.destinationY = w9oM ? u6XM : 0;
            B9oM.duration = U6XM;
            B9oM.transitionTiming = h6XM;
            J9oM('onGestureEnd', B9oM);
            W6XM(u6XM, U6XM);
        }

        function W6XM(j6XM, x6XM, M3XM, d3XM) {
            var G6XM = j6XM != I9oM,
                S6XM = x6XM > 1,
                L6XM = function Z3XM() {
                    clearInterval(m6XM);
                    clearTimeout(P6XM);
                    M6XM = false;
                    I9oM = j6XM;
                    B9oM.posX = w9oM ? 0 : j6XM;
                    B9oM.posY = w9oM ? j6XM : 0;
                    if (G6XM) {
                        J9oM('onMove', B9oM);
                    }
                    if (S6XM) {
                        J9oM('onAnimationEnd', B9oM);
                    }
                    if (d3XM) {
                        d3XM();
                    }
                };
            B9oM = {
                posX: w9oM ? 0 : I9oM,
                posY: w9oM ? I9oM : 0,
                originX: w9oM ? 0 : O9oM,
                originY: w9oM ? O9oM : 0,
                direction: j6XM - I9oM > 0 ? w9oM ? 270 : 360 : w9oM ? 90 : 180
            };
            I9oM = j6XM;
            if (S6XM) {
                B9oM.destinationX = w9oM ? 0 : j6XM;
                B9oM.destinationY = w9oM ? j6XM : 0;
                B9oM.duration = x6XM;
                B9oM.transitionTiming = h6XM;
                J9oM('onAnimationStart', B9oM);
            }
            K6XM[f46M + 'Transition'] = x6XM ? M86M + 'transform ' + Math.round(x6XM) + 'ms ' + h6XM : '';
            K6XM[f46M + 'Transform'] = 'translate3d(' + (w9oM ? '0,' + j6XM + 'px,' : j6XM + 'px,' + '0,') + '0)';
            if (!G6XM && !M6XM || !x6XM || x6XM <= 1) {
                L6XM();
            } else if (x6XM) {
                M6XM = !M3XM;
                clearInterval(m6XM);
                m6XM = setInterval(function() {
                    var p3XM = +g46M(G9oM, w9oM) || 0;
                    B9oM.posX = w9oM ? 0 : p3XM;
                    B9oM.posY = w9oM ? p3XM : 0;
                    J9oM('onMove', B9oM);
                    if (Math.abs(p3XM - j6XM) < 2) {
                        L6XM();
                    }
                }, 100);
                clearTimeout(P6XM);
                P6XM = setTimeout(function() {
                    L6XM();
                }, x6XM);
            }
            if (X9oM.sync) {
                X9oM.sync(j6XM, x6XM, h6XM);
            }
        }
        var U9oM, b6XM, o6XM, n6XM, q6XM, F9oM, r6XM, h6XM, A6XM, l6XM, T6XM, B9oM, t6XM, H6XM, j9oM, d6XM, x9oM, Y6XM, M6XM, D6XM, a6XM, Z6XM, N6XM, f6XM, m6XM, g9oM, u9oM, O9oM, s6XM, V6XM, R6XM, K6XM, G9oM, P6XM, Q6XM, J9oM, w9oM, e9oM = this,
            I9oM, S9oM = 0,
            y6XM = 1,
            X9oM = z6XM,
            L9oM = u9HM(p6XM);
        K76M.Base.call(this, p6XM, z6XM, true);
        e9oM.scrolled = false;
        e9oM.scroll = function(N3XM, D3XM, t3XM, h3XM) {
            if (!r36M(N3XM)) {
                N3XM = Math.ceil((u9HM(N3XM, p6XM).length ? Math.round(G9oM.offset()[r6XM] - u9HM(N3XM, p6XM).offset()[r6XM]) : I9oM) / g9oM) * g9oM;
            } else {
                N3XM = Math.round(N3XM / g9oM) * g9oM;
            }
            N3XM = T66M(N3XM, x9oM, j9oM);
            S9oM = Math.round(N3XM / g9oM);
            O9oM = I9oM;
            W6XM(N3XM, D3XM, t3XM, h3XM);
        };
        e9oM.refresh = function(o3XM) {
            var q3XM;
            o6XM = X9oM.contSize === undefined ? w9oM ? L9oM.height() : L9oM.width() : X9oM.contSize;
            x9oM = X9oM.minScroll === undefined ? Math.min(0, w9oM ? o6XM - G9oM.height() : o6XM - G9oM.width()) : X9oM.minScroll;
            j9oM = X9oM.maxScroll === undefined ? 0 : X9oM.maxScroll;
            u9oM = null;
            if (!w9oM && X9oM.rtl) {
                q3XM = j9oM;
                j9oM = -x9oM;
                x9oM = -q3XM;
            }
            if (x16M(X9oM.snap)) {
                u9oM = [];
                G9oM.find(X9oM.snap).each(function() {
                    var Y3XM = w9oM ? this.offsetTop : this.offsetLeft,
                        n3XM = w9oM ? this.offsetHeight : this.offsetWidth;
                    u9oM.push({
                        breakpoint: Y3XM + n3XM / 2,
                        snap1: -Y3XM,
                        snap2: o6XM - Y3XM - n3XM
                    });
                });
            }
            g9oM = r36M(X9oM.snap) ? X9oM.snap : 1;
            d6XM = X9oM.snap ? X9oM.maxSnapScroll : 0;
            h6XM = X9oM.easing;
            A6XM = X9oM.elastic ? r36M(X9oM.snap) ? g9oM : r36M(X9oM.elastic) ? X9oM.elastic : 0 : 0;
            if (I9oM === undefined) {
                I9oM = X9oM.initialPos;
                S9oM = Math.round(I9oM / g9oM);
            }
            if (!o3XM) {
                e9oM.scroll(X9oM.snap ? u9oM ? u9oM[S9oM]['snap' + y6XM] : S9oM * g9oM : I9oM);
            }
        };
        e9oM._processSettings = function() {
            w9oM = X9oM.axis == 'Y';
            r6XM = w9oM ? 'top' : 'left';
            G9oM = X9oM.moveElement || L9oM.children().eq(0);
            K6XM = G9oM[0].style;
            Q6XM = w9oM ? X9oM.thresholdY : X9oM.thresholdX;
        };
        e9oM._init = function() {
            e9oM.refresh();
            L9oM.on('touchstart mousedown', k6XM).on('touchmove', C6XM).on('touchend touchcancel', E6XM);
            if (X9oM.mousewheel) {
                L9oM.on('wheel mousewheel', c6XM);
            }
            if (p6XM.addEventListener) {
                p6XM.addEventListener('click', function(C3XM) {
                    if (e9oM.scrolled) {
                        e9oM.scrolled = false;
                        C3XM.stopPropagation();
                        C3XM.preventDefault();
                    }
                }, true);
            }
        };
        e9oM._destroy = function() {
            clearInterval(m6XM);
            L9oM.off('touchstart mousedown', k6XM).off('touchmove', C6XM).off('touchend touchcancel', E6XM).off('wheel mousewheel', c6XM);
        };
        X9oM = e9oM.settings;
        J9oM = e9oM.trigger;
        if (!X6XM) {
            e9oM.init(z6XM);
        }
    };
    s36M.prototype = {
        _class: 'scrollview',
        _defaults: {
            speedUnit: 0.0022,
            timeUnit: 3,
            initialPos: 0,
            axis: 'Y',
            thresholdX: 10,
            thresholdY: 5,
            easing: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)',
            stopProp: true,
            momentum: true,
            mousewheel: true,
            elastic: true
        }
    };
    K76M.ScrollView = s36M;
    U9HM.presetShort('scrollview', 'ScrollView', false);
    var A66M = U9HM.util;
    var f26M = A66M.jsPrefix;
    var a46M = A66M.prefix;
    var F36M = A66M.getCoord;
    var g16M = A66M.testTouch;
    var C46M = Y66M ? window.CSS : null;
    var I16M = C46M && C46M.supports && C46M.supports("(transform-style: preserve-3d)");
    var F16M = !I16M || q66M == 'wp' || q66M == 'android';
    U9HM.presetShort('scroller', 'Scroller', false);
    var N66M = function W3XM(b3XM, S3XM, n4XM) {
        function t4XM(W4XM) {
            var m4XM = +u9HM(this).attr('data-index');
            W4XM.stopPropagation();
            if (W4XM.type === 'mousedown') {
                W4XM.preventDefault();
            }
            if (g16M(W4XM, this) && !L3XM(m4XM)) {
                k3XM = u9HM(this).addClass('mbsc-sc-btn-a');
                M4XM = F36M(W4XM, 'X');
                p4XM = F36M(W4XM, 'Y');
                Q3XM = true;
                w3XM = false;
                setTimeout(function() {
                    Z4XM(m4XM, k3XM.attr('data-dir') == 'inc' ? 1 : -1);
                }, 100);
                if (W4XM.type === 'mousedown') {
                    u9HM(document).on('mousemove', u3XM).on('mouseup', J3XM);
                }
            }
        }

        function u3XM(y4XM) {
            if (Math.abs(M4XM - F36M(y4XM, 'X')) > 7 || Math.abs(p4XM - F36M(y4XM, 'Y')) > 7) {
                O3XM(true);
            }
        }

        function J3XM(a4XM) {
            O3XM();
            a4XM.preventDefault();
            if (a4XM.type === 'mouseup') {
                u9HM(document).off('mousemove', u3XM).off('mouseup', J3XM);
            }
        }

        function h4XM(E4XM) {
            var P4XM = u9HM(this).attr('data-index'),
                K4XM, V4XM;
            if (E4XM.keyCode == 38) {
                K4XM = true;
                V4XM = -1;
            } else if (E4XM.keyCode == 40) {
                K4XM = true;
                V4XM = 1;
            } else if (E4XM.keyCode == 32) {
                K4XM = true;
                G3XM(P4XM, K3XM[P4XM]._$markup.find('.mbsc-sc-itm[data-val="' + E3XM[P4XM] + '"]'));
            }
            if (K4XM) {
                E4XM.stopPropagation();
                E4XM.preventDefault();
                if (V4XM && !Q3XM) {
                    Q3XM = true;
                    w3XM = false;
                    Z4XM(P4XM, V4XM);
                }
            }
        }

        function C4XM() {
            O3XM();
        }

        function G3XM(A4XM, b4XM) {
            var z4XM = K3XM[A4XM],
                c4XM = b4XM.attr('data-index'),
                l4XM = s3XM(z4XM, c4XM),
                r4XM = m3XM._tempSelected[A4XM],
                T4XM = A66M.isNumeric(z4XM.multiple) ? z4XM.multiple : Infinity;
            if (z3XM('onItemTap', {
                    target: b4XM[0],
                    index: A4XM,
                    value: l4XM,
                    selected: b4XM.hasClass('mbsc-sc-itm-sel')
                }) !== false) {
                if (z4XM.multiple && !z4XM._disabled[l4XM]) {
                    if (r4XM[l4XM] !== undefined) {
                        b4XM.removeClass(A3XM).removeAttr('aria-selected');
                        delete r4XM[l4XM];
                    } else {
                        if (T4XM == 1) {
                            m3XM._tempSelected[A4XM] = r4XM = {};
                            z4XM._$markup.find('.mbsc-sc-itm-sel').removeClass(A3XM).removeAttr('aria-selected');
                        }
                        if (A66M.objectToArray(r4XM).length < T4XM) {
                            b4XM.addClass(A3XM).attr('aria-selected', 'true');
                            r4XM[l4XM] = l4XM;
                        }
                    }
                }
                j3XM(z4XM, A4XM, c4XM, v3XM, true, true, z4XM.multiple);
                if (m3XM.live && !z4XM.multiple && (y3XM.setOnTap === true || y3XM.setOnTap[A4XM])) {
                    setTimeout(function() {
                        m3XM.select();
                    }, 200);
                }
            }
        }

        function x3XM(f4XM, Q4XM) {
            return (f4XM._array ? f4XM._map[Q4XM] : f4XM.getIndex(Q4XM, m3XM)) || 0;
        }

        function D4XM(s4XM, k4XM) {
            var i4XM = s4XM.data;
            if (k4XM >= s4XM.min && k4XM <= s4XM.max) {
                return s4XM._array ? s4XM.circular ? u9HM(i4XM).get(k4XM % s4XM._length) : i4XM[k4XM] : u9HM.isFunction(i4XM) ? i4XM(k4XM, m3XM) : '';
            }
        }

        function B3XM(v4XM) {
            return u9HM.isPlainObject(v4XM) ? v4XM.value !== undefined ? v4XM.value : v4XM.display : v4XM;
        }

        function Y4XM(R4XM) {
            var H4XM = u9HM.isPlainObject(R4XM) ? R4XM.display : R4XM;
            return H4XM === undefined ? '' : H4XM;
        }

        function s3XM(X4XM, w4XM) {
            return B3XM(D4XM(X4XM, w4XM));
        }

        function Z4XM(B4XM, e4XM) {
            if (!w3XM) {
                N4XM(B4XM, e4XM);
            }
            if (Q3XM) {
                clearInterval(e3XM);
                e3XM = setInterval(function() {
                    N4XM(B4XM, e4XM);
                }, y3XM.delay);
            }
        }

        function O3XM(F4XM) {
            clearInterval(e3XM);
            w3XM = F4XM;
            Q3XM = false;
            if (k3XM) {
                k3XM.removeClass('mbsc-sc-btn-a');
            }
        }

        function N4XM(g4XM, O4XM) {
            var I4XM = K3XM[g4XM];
            j3XM(I4XM, g4XM, I4XM._current + O4XM, v3XM, O4XM == 1 ? 1 : 2);
        }

        function L3XM(u4XM) {
            return u9HM.isArray(y3XM.readonly) ? y3XM.readonly[u4XM] : y3XM.readonly;
        }

        function U3XM(J4XM, U4XM, x4XM) {
            var j4XM = J4XM._index - J4XM._batch;
            J4XM.data = J4XM.data || [];
            J4XM.key = J4XM.key !== undefined ? J4XM.key : U4XM;
            J4XM.label = J4XM.label !== undefined ? J4XM.label : U4XM;
            J4XM._map = {};
            J4XM._array = u9HM.isArray(J4XM.data);
            if (J4XM._array) {
                J4XM._length = J4XM.data.length;
                u9HM.each(J4XM.data, function(L4XM, G4XM) {
                    J4XM._map[B3XM(G4XM)] = L4XM;
                });
            }
            J4XM.circular = y3XM.circular === undefined ? J4XM.circular === undefined ? J4XM._array && J4XM._length > y3XM.rows : J4XM.circular : u9HM.isArray(y3XM.circular) ? y3XM.circular[U4XM] : y3XM.circular;
            J4XM.min = J4XM._array ? J4XM.circular ? -Infinity : 0 : J4XM.min === undefined ? -Infinity : J4XM.min;
            J4XM.max = J4XM._array ? J4XM.circular ? Infinity : J4XM._length - 1 : J4XM.max === undefined ? Infinity : J4XM.max;
            J4XM._nr = U4XM;
            J4XM._index = x3XM(J4XM, E3XM[U4XM]);
            J4XM._disabled = {};
            J4XM._batch = 0;
            J4XM._current = J4XM._index;
            J4XM._first = J4XM._index - V3XM;
            J4XM._last = J4XM._index + V3XM;
            J4XM._offset = J4XM._first;
            if (x4XM) {
                J4XM._offset -= J4XM._margin / a3XM + (J4XM._index - j4XM);
                J4XM._margin += (J4XM._index - j4XM) * a3XM;
            } else {
                J4XM._margin = 0;
            }
            J4XM._refresh = function(M2XM) {
                var S4XM = -(J4XM.min - J4XM._offset + (J4XM.multiple && !P3XM ? Math.floor(y3XM.rows / 2) : 0)) * a3XM,
                    d2XM = Math.min(S4XM, -(J4XM.max - J4XM._offset - (J4XM.multiple && !P3XM ? Math.floor(y3XM.rows / 2) : 0)) * a3XM);
                j9HM(J4XM._scroller.settings, {
                    minScroll: d2XM,
                    maxScroll: S4XM
                });
                J4XM._scroller.refresh(M2XM);
            };
            I3XM[J4XM.key] = J4XM;
            return J4XM;
        }

        function r3XM(D2XM, Y2XM, E2XM, a2XM, n2XM) {
            var N2XM, y2XM, Z2XM, p2XM, C2XM, q2XM, m2XM, o2XM, h2XM = '',
                t2XM = m3XM._tempSelected[Y2XM],
                W2XM = D2XM._disabled || {};
            for (N2XM = E2XM; N2XM <= a2XM; N2XM++) {
                Z2XM = D4XM(D2XM, N2XM);
                C2XM = Y4XM(Z2XM);
                p2XM = B3XM(Z2XM);
                y2XM = Z2XM && Z2XM.cssClass !== undefined ? Z2XM.cssClass : '';
                q2XM = Z2XM && Z2XM.label !== undefined ? Z2XM.label : '';
                m2XM = Z2XM && Z2XM.invalid;
                o2XM = p2XM !== undefined && p2XM == E3XM[Y2XM] && !D2XM.multiple;
                h2XM += '<div role="option" aria-selected="' + (t2XM[p2XM] ? true : false) + '" class="mbsc-sc-itm ' + (n2XM ? 'mbsc-sc-itm-3d ' : '') + y2XM + ' ' + (o2XM ? 'mbsc-sc-itm-sel ' : '') + (t2XM[p2XM] ? A3XM : '') + (p2XM === undefined ? ' mbsc-sc-itm-ph' : ' mbsc-btn-e') + (m2XM ? ' mbsc-sc-itm-inv-h mbsc-btn-d' : '') + (W2XM[p2XM] ? ' mbsc-sc-itm-inv mbsc-btn-d' : '') + '" data-index="' + N2XM + '" data-val="' + p2XM + '"' + (q2XM ? ' aria-label="' + q2XM + '"' : '') + (o2XM ? ' aria-selected="true"' : '') + ' style="height:' + a3XM + 'px;line-height:' + a3XM + 'px;' + (n2XM ? a46M + 'transform:rotateX(' + (D2XM._offset - N2XM) * F3XM % 360 + 'deg) translateZ(' + a3XM * y3XM.rows / 2 + 'px);' : '') + '">' + (T3XM > 1 ? '<div class="mbsc-sc-itm-ml" style="line-height:' + Math.round(a3XM / T3XM) + 'px;font-size:' + Math.round(a3XM / T3XM * 0.8) + 'px;">' : '') + C2XM + (T3XM > 1 ? '</div>' : '') + '</div>';
            }
            return h2XM;
        }

        function q4XM(K2XM) {
            var P2XM = y3XM.headerText;
            return P2XM ? typeof P2XM === 'function' ? P2XM.call(b3XM, K2XM) : P2XM.replace(/\{value\}/i, K2XM) : '';
        }

        function o4XM(V2XM, c2XM, f2XM) {
            var T2XM = Math.round(-f2XM / a3XM) + V2XM._offset,
                z2XM = T2XM - V2XM._current,
                l2XM = V2XM._first,
                A2XM = V2XM._last,
                r2XM = l2XM + V3XM - l3XM + 1,
                b2XM = A2XM - V3XM + l3XM;
            if (z2XM) {
                V2XM._first += z2XM;
                V2XM._last += z2XM;
                V2XM._current = T2XM;
                if (z2XM > 0) {
                    V2XM._$scroller.append(r3XM(V2XM, c2XM, Math.max(A2XM + 1, l2XM + z2XM), A2XM + z2XM));
                    u9HM('.mbsc-sc-itm', V2XM._$scroller).slice(0, Math.min(z2XM, A2XM - l2XM + 1)).remove();
                    if (P3XM) {
                        V2XM._$3d.append(r3XM(V2XM, c2XM, Math.max(b2XM + 1, r2XM + z2XM), b2XM + z2XM, true));
                        u9HM('.mbsc-sc-itm', V2XM._$3d).slice(0, Math.min(z2XM, b2XM - r2XM + 1)).attr('class', 'mbsc-sc-itm-del');
                    }
                } else if (z2XM < 0) {
                    V2XM._$scroller.prepend(r3XM(V2XM, c2XM, l2XM + z2XM, Math.min(l2XM - 1, A2XM + z2XM)));
                    u9HM('.mbsc-sc-itm', V2XM._$scroller).slice(Math.max(z2XM, l2XM - A2XM - 1)).remove();
                    if (P3XM) {
                        V2XM._$3d.prepend(r3XM(V2XM, c2XM, r2XM + z2XM, Math.min(r2XM - 1, b2XM + z2XM), true));
                        u9HM('.mbsc-sc-itm', V2XM._$3d).slice(Math.max(z2XM, r2XM - b2XM - 1)).attr('class', 'mbsc-sc-itm-del');
                    }
                }
                V2XM._margin += z2XM * a3XM;
                V2XM._$scroller.css('margin-top', V2XM._margin + 'px');
            }
        }

        function d4XM(e2XM, Q2XM, B2XM, F2XM) {
            var R2XM, s2XM = K3XM[e2XM],
                H2XM = F2XM || s2XM._disabled,
                i2XM = x3XM(s2XM, Q2XM),
                w2XM = Q2XM,
                X2XM = Q2XM,
                k2XM = 0,
                v2XM = 0;
            if (Q2XM === undefined) {
                Q2XM = s3XM(s2XM, i2XM);
            }
            if (H2XM[Q2XM] === true) {
                R2XM = 0;
                while (i2XM - k2XM >= s2XM.min && H2XM[w2XM] && R2XM < 100) {
                    R2XM++;
                    k2XM++;
                    w2XM = s3XM(s2XM, i2XM - k2XM);
                }
                R2XM = 0;
                while (i2XM + v2XM < s2XM.max && H2XM[X2XM] && R2XM < 100) {
                    R2XM++;
                    v2XM++;
                    X2XM = s3XM(s2XM, i2XM + v2XM);
                }
                if ((v2XM < k2XM && v2XM && B2XM !== 2 || !k2XM || i2XM - k2XM < 0 || B2XM == 1) && !H2XM[X2XM]) {
                    Q2XM = X2XM;
                } else {
                    Q2XM = w2XM;
                }
            }
            return Q2XM;
        }

        function i3XM(G2XM, O2XM, x2XM, u2XM, L2XM, S2XM) {
            var J2XM, U2XM, j2XM, I2XM, g2XM = m3XM._isVisible;
            f3XM = true;
            I2XM = y3XM.validate.call(b3XM, {
                values: E3XM.slice(0),
                index: O2XM,
                direction: x2XM
            }, m3XM) || {};
            f3XM = false;
            if (I2XM.valid) {
                m3XM._tempWheelArray = E3XM = I2XM.valid.slice(0);
            }
            if (!S2XM) {
                u9HM.each(K3XM, function(M7XM, d7XM) {
                    if (g2XM) {
                        d7XM._$markup.find('.mbsc-sc-itm-inv').removeClass('mbsc-sc-itm-inv mbsc-btn-d');
                    }
                    d7XM._disabled = {};
                    if (I2XM.disabled && I2XM.disabled[M7XM]) {
                        u9HM.each(I2XM.disabled[M7XM], function(N7XM, p7XM) {
                            d7XM._disabled[p7XM] = true;
                            if (g2XM) {
                                d7XM._$markup.find('.mbsc-sc-itm[data-val="' + p7XM + '"]').addClass('mbsc-sc-itm-inv mbsc-btn-d');
                            }
                        });
                    }
                    E3XM[M7XM] = d7XM.multiple ? E3XM[M7XM] : d4XM(M7XM, E3XM[M7XM], x2XM);
                    if (g2XM) {
                        if (!d7XM.multiple || O2XM === undefined) {
                            d7XM._$markup.find('.mbsc-sc-itm-sel').removeClass(A3XM).removeAttr('aria-selected');
                        }
                        if (d7XM.multiple) {
                            if (O2XM === undefined) {
                                for (var Z7XM in m3XM._tempSelected[M7XM]) {
                                    d7XM._$markup.find('.mbsc-sc-itm[data-val="' + Z7XM + '"]').addClass(A3XM).attr('aria-selected', 'true');
                                }
                            }
                        } else {
                            d7XM._$markup.find('.mbsc-sc-itm[data-val="' + E3XM[M7XM] + '"]').addClass('mbsc-sc-itm-sel').attr('aria-selected', 'true');
                        }
                        U2XM = x3XM(d7XM, E3XM[M7XM]);
                        J2XM = U2XM - d7XM._index + d7XM._batch;
                        if (Math.abs(J2XM) > 2 * V3XM + 1) {
                            j2XM = J2XM + (2 * V3XM + 1) * (J2XM > 0 ? -1 : 1);
                            d7XM._offset += j2XM;
                            d7XM._margin -= j2XM * a3XM;
                            d7XM._refresh();
                        }
                        d7XM._index = U2XM + d7XM._batch;
                        d7XM._scroller.scroll(-(U2XM - d7XM._offset + d7XM._batch) * a3XM, O2XM === M7XM || O2XM === undefined ? G2XM : v3XM, L2XM);
                    }
                });
            }
            z3XM('onValidated');
            m3XM._tempValue = y3XM.formatValue(E3XM, m3XM);
            if (g2XM) {
                m3XM._header.html(q4XM(m3XM._tempValue));
            }
            if (m3XM.live) {
                m3XM._hasValue = u2XM || m3XM._hasValue;
                H3XM(u2XM, u2XM, 0, true);
                if (u2XM) {
                    z3XM('onSet', {
                        valueText: m3XM._value
                    });
                }
            }
            if (u2XM) {
                z3XM('onChange', {
                    valueText: m3XM._tempValue
                });
            }
        }

        function j3XM(D7XM, h7XM, q7XM, o7XM, Y7XM, n7XM, C7XM) {
            var t7XM = s3XM(D7XM, q7XM);
            if (t7XM !== undefined) {
                E3XM[h7XM] = t7XM;
                D7XM._batch = D7XM._array ? Math.floor(q7XM / D7XM._length) * D7XM._length : 0;
                setTimeout(function() {
                    i3XM(o7XM, h7XM, Y7XM, true, n7XM, C7XM);
                }, 10);
            }
        }

        function H3XM(y7XM, m7XM, a7XM, E7XM, P7XM) {
            if (!E7XM) {
                i3XM(a7XM);
            } else {
                m3XM._tempValue = y3XM.formatValue(m3XM._tempWheelArray, m3XM);
            }
            if (!P7XM) {
                m3XM._wheelArray = [];
                for (var W7XM = 0; W7XM < E3XM.length; W7XM++) {
                    m3XM._wheelArray[W7XM] = K3XM[W7XM] && K3XM[W7XM].multiple ? Object.keys(m3XM._tempSelected[W7XM])[0] : E3XM[W7XM];
                }
                m3XM._value = m3XM._hasValue ? m3XM._tempValue : null;
                m3XM._selected = j9HM(true, {}, m3XM._tempSelected);
            }
            if (y7XM) {
                if (m3XM._isInput) {
                    X3XM.val(m3XM._hasValue ? m3XM._tempValue : '');
                }
                z3XM('onFill', {
                    valueText: m3XM._hasValue ? m3XM._tempValue : '',
                    change: m7XM
                });
                if (m7XM) {
                    m3XM._preventChange = true;
                    X3XM.trigger('change');
                }
            }
        }
        var g3XM, k3XM, l3XM, V3XM = 40,
            v3XM = 1000,
            F3XM, P3XM, A3XM, c3XM, e3XM, Q3XM, w3XM, M4XM, p4XM, E3XM, a3XM, R3XM, f3XM, y3XM, z3XM, T3XM, K3XM, I3XM, m3XM = this,
            X3XM = u9HM(b3XM);
        V66M.call(this, b3XM, S3XM, true);
        m3XM.setVal = m3XM._setVal = function(K7XM, V7XM, z7XM, l7XM, A7XM) {
            m3XM._hasValue = K7XM !== null && K7XM !== undefined;
            m3XM._tempWheelArray = E3XM = u9HM.isArray(K7XM) ? K7XM.slice(0) : y3XM.parseValue.call(b3XM, K7XM, m3XM) || [];
            H3XM(V7XM, z7XM === undefined ? V7XM : z7XM, A7XM, false, l7XM);
        };
        m3XM.getVal = m3XM._getVal = function(b7XM) {
            var r7XM = m3XM._hasValue || b7XM ? m3XM[b7XM ? '_tempValue' : '_value'] : null;
            return A66M.isNumeric(r7XM) ? +r7XM : r7XM;
        };
        m3XM.setArrayVal = m3XM.setVal;
        m3XM.getArrayVal = function(c7XM) {
            return c7XM ? m3XM._tempWheelArray : m3XM._wheelArray;
        };
        m3XM.changeWheel = function(Q7XM, s7XM, k7XM) {
            var f7XM, T7XM;
            u9HM.each(Q7XM, function(i7XM, v7XM) {
                T7XM = I3XM[i7XM];
                f7XM = T7XM._nr;
                if (T7XM) {
                    j9HM(T7XM, v7XM);
                    U3XM(T7XM, f7XM, true);
                    if (m3XM._isVisible) {
                        if (P3XM) {
                            T7XM._$3d.html(r3XM(T7XM, f7XM, T7XM._first + V3XM - l3XM + 1, T7XM._last - V3XM + l3XM, true));
                        }
                        T7XM._$scroller.html(r3XM(T7XM, f7XM, T7XM._first, T7XM._last)).css('margin-top', T7XM._margin + 'px');
                        T7XM._refresh(f3XM);
                    }
                }
            });
            if (m3XM._isVisible && !m3XM._isLiquid && !f3XM) {
                m3XM.position();
            }
            if (!f3XM) {
                i3XM(s7XM, undefined, undefined, k7XM);
            }
        };
        m3XM.getValidValue = d4XM;
        m3XM._generateContent = function() {
            var B7XM, X7XM = 0,
                H7XM = '',
                w7XM = P3XM ? a46M + 'transform: translateZ(' + (a3XM * y3XM.rows / 2 + 3) + 'px);' : '',
                e7XM = '<div class="mbsc-sc-whl-l" style="' + w7XM + 'height:' + a3XM + 'px;margin-top:-' + (a3XM / 2 + (y3XM.selectedLineBorder || 0)) + 'px;"></div>',
                R7XM = 0;
            u9HM.each(y3XM.wheels, function(I7XM, F7XM) {
                H7XM += '<div class="mbsc-w-p mbsc-sc-whl-gr-c' + (y3XM.showLabel ? ' mbsc-sc-lbl-v' : '') + '">' + e7XM + '<div class="mbsc-sc-whl-gr' + (P3XM ? ' mbsc-sc-whl-gr-3d' : '') + (c3XM ? ' mbsc-sc-cp' : '') + (y3XM.width || y3XM.maxWidth ? '"' : '" style="max-width:' + y3XM.maxPopupWidth + 'px;"') + '>';
                u9HM.each(F7XM, function(O7XM, g7XM) {
                    m3XM._tempSelected[R7XM] = j9HM({}, m3XM._selected[R7XM]);
                    K3XM[R7XM] = U3XM(g7XM, R7XM);
                    X7XM += y3XM.maxWidth ? y3XM.maxWidth[R7XM] || y3XM.maxWidth : y3XM.width ? y3XM.width[R7XM] || y3XM.width : 0;
                    B7XM = g7XM.label !== undefined ? g7XM.label : O7XM;
                    H7XM += '<div class="mbsc-sc-whl-w ' + (g7XM.cssClass || '') + (g7XM.multiple ? ' mbsc-sc-whl-multi' : '') + '" style="' + (y3XM.width ? 'width:' + (y3XM.width[R7XM] || y3XM.width) + 'px;' : (y3XM.minWidth ? 'min-width:' + (y3XM.minWidth[R7XM] || y3XM.minWidth) + 'px;' : '') + (y3XM.maxWidth ? 'max-width:' + (y3XM.maxWidth[R7XM] || y3XM.maxWidth) + 'px;' : '')) + '">' + '<div class="mbsc-sc-whl-o" style="' + w7XM + '"></div>' + e7XM + '<div tabindex="0" aria-live="off" aria-label="' + B7XM + '"' + (g7XM.multiple ? ' aria-multiselectable="true"' : '') + ' role="listbox" data-index="' + R7XM + '" class="mbsc-sc-whl"' + ' style="' + 'height:' + y3XM.rows * a3XM * (P3XM ? 1.1 : 1) + 'px;">' + (c3XM ? '<div data-index="' + R7XM + '" data-dir="inc" class="mbsc-sc-btn mbsc-sc-btn-plus ' + (y3XM.btnPlusClass || '') + '" style="height:' + a3XM + 'px;line-height:' + a3XM + 'px;"></div>' + '<div data-index="' + R7XM + '" data-dir="dec" class="mbsc-sc-btn mbsc-sc-btn-minus ' + (y3XM.btnMinusClass || '') + '" style="height:' + a3XM + 'px;line-height:' + a3XM + 'px;"></div>' : '') + '<div class="mbsc-sc-lbl">' + B7XM + '</div>' + '<div class="mbsc-sc-whl-c"' + ' style="height:' + R3XM + 'px;margin-top:-' + (R3XM / 2 + 1) + 'px;' + w7XM + '">' + '<div class="mbsc-sc-whl-sc" style="top:' + (R3XM - a3XM) / 2 + 'px;">';
                    H7XM += r3XM(g7XM, R7XM, g7XM._first, g7XM._last) + '</div></div>';
                    if (P3XM) {
                        H7XM += '<div class="mbsc-sc-whl-3d" style="height:' + a3XM + 'px;margin-top:-' + a3XM / 2 + 'px;">';
                        H7XM += r3XM(g7XM, R7XM, g7XM._first + V3XM - l3XM + 1, g7XM._last - V3XM + l3XM, true);
                        H7XM += '</div>';
                    }
                    H7XM += '</div></div>';
                    R7XM++;
                });
                H7XM += '</div></div>';
            });
            if (X7XM) {
                y3XM.maxPopupWidth = X7XM;
            }
            return H7XM;
        };
        m3XM._attachEvents = function(u7XM) {
            u9HM('.mbsc-sc-btn', u7XM).on('touchstart mousedown', t4XM).on('touchmove', u3XM).on('touchend touchcancel', J3XM);
            u9HM('.mbsc-sc-whl', u7XM).on('keydown', h4XM).on('keyup', C4XM);
        };
        m3XM._detachEvents = function() {
            for (var J7XM = 0; J7XM < K3XM.length; J7XM++) {
                K3XM[J7XM]._scroller.destroy();
            }
        };
        m3XM._markupReady = function(U7XM) {
            g3XM = U7XM;
            u9HM('.mbsc-sc-whl', g3XM).each(function(x7XM) {
                var S7XM, L7XM = u9HM(this),
                    j7XM = K3XM[x7XM],
                    G7XM = -(j7XM.min - j7XM._offset + (j7XM.multiple && !P3XM ? Math.floor(y3XM.rows / 2) : 0)) * a3XM,
                    d1XM = Math.min(G7XM, -(j7XM.max - j7XM._offset - (j7XM.multiple && !P3XM ? Math.floor(y3XM.rows / 2) : 0)) * a3XM);
                j7XM._$markup = L7XM;
                j7XM._$scroller = u9HM('.mbsc-sc-whl-sc', this);
                j7XM._$3d = u9HM('.mbsc-sc-whl-3d', this);
                j7XM._scroller = new s36M(this, {
                    mousewheel: y3XM.mousewheel,
                    moveElement: j7XM._$scroller,
                    initialPos: (j7XM._first - j7XM._index) * a3XM,
                    contSize: 0,
                    snap: a3XM,
                    minScroll: d1XM,
                    maxScroll: G7XM,
                    maxSnapScroll: V3XM,
                    prevDef: true,
                    stopProp: true,
                    timeUnit: 3,
                    easing: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)',
                    sync: function M1XM(p1XM, Z1XM, N1XM) {
                        if (P3XM) {
                            j7XM._$3d[0].style[f26M + 'Transition'] = Z1XM ? a46M + 'transform ' + Math.round(Z1XM) + 'ms ' + N1XM : '';
                            j7XM._$3d[0].style[f26M + 'Transform'] = 'rotateX(' + -p1XM / a3XM * F3XM + 'deg)';
                        }
                    },
                    onStart: function D1XM(h1XM, t1XM) {
                        t1XM.settings.readonly = L3XM(x7XM);
                    },
                    onGestureStart: function q1XM() {
                        L7XM.addClass('mbsc-sc-whl-a mbsc-sc-whl-anim');
                        z3XM('onWheelGestureStart', {
                            index: x7XM
                        });
                    },
                    onGestureEnd: function o1XM(Y1XM) {
                        var n1XM = Y1XM.direction == 90 ? 1 : 2,
                            C1XM = Y1XM.duration,
                            W1XM = Y1XM.destinationY;
                        S7XM = Math.round(-W1XM / a3XM) + j7XM._offset;
                        j3XM(j7XM, x7XM, S7XM, C1XM, n1XM);
                    },
                    onAnimationStart: function m1XM() {
                        L7XM.addClass('mbsc-sc-whl-anim');
                    },
                    onAnimationEnd: function y1XM() {
                        L7XM.removeClass('mbsc-sc-whl-a mbsc-sc-whl-anim');
                        z3XM('onWheelAnimationEnd', {
                            index: x7XM
                        });
                        j7XM._$3d.find('.mbsc-sc-itm-del').remove();
                    },
                    onMove: function a1XM(E1XM) {
                        o4XM(j7XM, x7XM, E1XM.posY);
                    },
                    onBtnTap: function P1XM(K1XM) {
                        G3XM(x7XM, u9HM(K1XM.target));
                    }
                });
            });
            i3XM();
        };
        m3XM._fillValue = function() {
            m3XM._hasValue = true;
            H3XM(true, true, 0, true);
        };
        m3XM._clearValue = function() {
            u9HM('.mbsc-sc-whl-multi .mbsc-sc-itm-sel', g3XM).removeClass(A3XM).removeAttr('aria-selected');
        };
        m3XM._readValue = function() {
            var z1XM = X3XM.val() || '',
                V1XM = 0;
            if (z1XM !== '') {
                m3XM._hasValue = true;
            }
            m3XM._tempWheelArray = E3XM = m3XM._hasValue && m3XM._wheelArray ? m3XM._wheelArray.slice(0) : y3XM.parseValue.call(b3XM, z1XM, m3XM) || [];
            m3XM._tempSelected = j9HM(true, {}, m3XM._selected);
            u9HM.each(y3XM.wheels, function(A1XM, l1XM) {
                u9HM.each(l1XM, function(b1XM, r1XM) {
                    K3XM[V1XM] = U3XM(r1XM, V1XM);
                    V1XM++;
                });
            });
            H3XM(false, false, 0, true);
            z3XM('onRead');
        };
        m3XM.__processSettings = function() {
            y3XM = m3XM.settings;
            z3XM = m3XM.trigger;
            T3XM = y3XM.multiline;
            A3XM = 'mbsc-sc-itm-sel mbsc-ic mbsc-ic-' + y3XM.checkIcon;
            K3XM = [];
            I3XM = {};
        };
        m3XM.__init = function() {
            c3XM = y3XM.showScrollArrows;
            P3XM = y3XM.scroll3d && !F16M && !c3XM;
            a3XM = y3XM.height;
            R3XM = P3XM ? Math.round((a3XM - (a3XM * y3XM.rows / 2 + 3) * 0.03) / 2) * 2 : a3XM;
            l3XM = Math.round(y3XM.rows * 1.8);
            F3XM = 360 / (l3XM * 2);
            if (c3XM) {
                y3XM.rows = Math.max(3, y3XM.rows);
            }
            y3XM.cssClass = (y3XM.cssClass || '') + ' mbsc-sc';
        };
        m3XM._getItemValue = B3XM;
        m3XM._tempSelected = {};
        m3XM._selected = {};
        if (!n4XM) {
            m3XM.init(S3XM);
        }
    };
    N66M.prototype = {
        _hasDef: true,
        _hasTheme: true,
        _hasLang: true,
        _hasPreset: true,
        _class: 'scroller',
        _defaults: j9HM({}, V66M.prototype._defaults, {
            minWidth: 80,
            height: 40,
            rows: 3,
            multiline: 1,
            delay: 300,
            readonly: false,
            showLabel: true,
            setOnTap: false,
            wheels: [],
            preset: '',
            speedUnit: 0.0012,
            timeUnit: 0.08,
            checkIcon: 'checkmark',
            validate: function c1XM() {},
            formatValue: function T1XM(f1XM) {
                return f1XM.join(' ');
            },
            parseValue: function Q1XM(k1XM, s1XM) {
                var i1XM = [],
                    v1XM = [],
                    R1XM = 0,
                    H1XM, X1XM;
                if (k1XM !== null && k1XM !== undefined) {
                    i1XM = (k1XM + '').split(' ');
                }
                u9HM.each(s1XM.settings.wheels, function(B1XM, w1XM) {
                    u9HM.each(w1XM, function(F1XM, e1XM) {
                        X1XM = e1XM.data;
                        H1XM = s1XM._getItemValue(X1XM[0]);
                        u9HM.each(X1XM, function(g1XM, I1XM) {
                            if (i1XM[R1XM] == s1XM._getItemValue(I1XM)) {
                                H1XM = s1XM._getItemValue(I1XM);
                                return false;
                            }
                        });
                        v1XM.push(H1XM);
                        R1XM++;
                    });
                });
                return v1XM;
            }
        })
    };
    U9HM.classes.Scroller = N66M;
    var h66M = {
        defaults: {
            shortYearCutoff: '+10',
            monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
            monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
            dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
            dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
            dayNamesMin: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
            amText: 'am',
            pmText: 'pm',
            getYear: function S1XM(d8XM) {
                return d8XM.getFullYear();
            },
            getMonth: function M8XM(Z8XM) {
                return Z8XM.getMonth();
            },
            getDay: function p8XM(N8XM) {
                return N8XM.getDate();
            },
            getDate: X16M,
            getMaxDayOfMonth: function D8XM(t8XM, h8XM) {
                return 32 - new Date(t8XM, h8XM, 32, 12).getDate();
            },
            getWeekNumber: function q8XM(o8XM) {
                o8XM = new Date(o8XM);
                o8XM.setHours(0, 0, 0);
                o8XM.setDate(o8XM.getDate() + 4 - (o8XM.getDay() || 7));
                var Y8XM = new Date(o8XM.getFullYear(), 0, 1);
                return Math.ceil(((o8XM - Y8XM) / 86400000 + 1) / 7);
            }
        },
        adjustedDate: X16M,
        formatDate: function n8XM(E8XM, W8XM, A8XM) {
            if (!W8XM) {
                return null;
            }
            var m8XM = j9HM({}, h66M.defaults, A8XM),
                P8XM = function r8XM(c8XM) {
                    var b8XM = 0;
                    while (y8XM + 1 < E8XM.length && E8XM.charAt(y8XM + 1) == c8XM) {
                        b8XM++;
                        y8XM++;
                    }
                    return b8XM;
                },
                a8XM = function T8XM(Q8XM, s8XM, k8XM) {
                    var f8XM = '' + s8XM;
                    if (P8XM(Q8XM)) {
                        while (f8XM.length < k8XM) {
                            f8XM = '0' + f8XM;
                        }
                    }
                    return f8XM;
                },
                l8XM = function i8XM(R8XM, v8XM, H8XM, X8XM) {
                    return P8XM(R8XM) ? X8XM[v8XM] : H8XM[v8XM];
                },
                y8XM, V8XM, C8XM = '',
                z8XM = false;
            for (y8XM = 0; y8XM < E8XM.length; y8XM++) {
                if (z8XM) {
                    if (E8XM.charAt(y8XM) == "'" && !P8XM("'")) {
                        z8XM = false;
                    } else {
                        C8XM += E8XM.charAt(y8XM);
                    }
                } else {
                    switch (E8XM.charAt(y8XM)) {
                        case 'd':
                            C8XM += a8XM('d', m8XM.getDay(W8XM), 2);
                            break;
                        case 'D':
                            C8XM += l8XM('D', W8XM.getDay(), m8XM.dayNamesShort, m8XM.dayNames);
                            break;
                        case 'o':
                            C8XM += a8XM('o', (W8XM.getTime() - new Date(W8XM.getFullYear(), 0, 0).getTime()) / 86400000, 3);
                            break;
                        case 'm':
                            C8XM += a8XM('m', m8XM.getMonth(W8XM) + 1, 2);
                            break;
                        case 'M':
                            C8XM += l8XM('M', m8XM.getMonth(W8XM), m8XM.monthNamesShort, m8XM.monthNames);
                            break;
                        case 'y':
                            V8XM = m8XM.getYear(W8XM);
                            C8XM += P8XM('y') ? V8XM : (V8XM % 100 < 10 ? '0' : '') + V8XM % 100;
                            break;
                        case 'h':
                            var K8XM = W8XM.getHours();
                            C8XM += a8XM('h', K8XM > 12 ? K8XM - 12 : K8XM === 0 ? 12 : K8XM, 2);
                            break;
                        case 'H':
                            C8XM += a8XM('H', W8XM.getHours(), 2);
                            break;
                        case 'i':
                            C8XM += a8XM('i', W8XM.getMinutes(), 2);
                            break;
                        case 's':
                            C8XM += a8XM('s', W8XM.getSeconds(), 2);
                            break;
                        case 'a':
                            C8XM += W8XM.getHours() > 11 ? m8XM.pmText : m8XM.amText;
                            break;
                        case 'A':
                            C8XM += W8XM.getHours() > 11 ? m8XM.pmText.toUpperCase() : m8XM.amText.toUpperCase();
                            break;
                        case "'":
                            if (P8XM("'")) {
                                C8XM += "'";
                            } else {
                                z8XM = true;
                            }
                            break;
                        default:
                            C8XM += E8XM.charAt(y8XM);
                    }
                }
            }
            return C8XM;
        },
        parseDate: function w8XM(j8XM, F8XM, q0XM) {
            var B8XM = j9HM({}, h66M.defaults, q0XM),
                J8XM = B8XM.defaultValue && B8XM.defaultValue.getTime ? B8XM.defaultValue : new Date();
            if (!j8XM || !F8XM) {
                return J8XM;
            }
            if (F8XM.getTime) {
                return F8XM;
            }
            F8XM = (typeof F8XM === 'undefined' ? 'undefined' : B66M(F8XM)) == 'object' ? F8XM.toString() : F8XM + '';
            var M0XM = B8XM.shortYearCutoff,
                O8XM = B8XM.getYear(J8XM),
                u8XM = B8XM.getMonth(J8XM) + 1,
                U8XM = B8XM.getDay(J8XM),
                N0XM = -1,
                e8XM = J8XM.getHours(),
                h0XM = J8XM.getMinutes(),
                D0XM = 0,
                x8XM = -1,
                p0XM = false,
                G8XM = function o0XM(n0XM) {
                    var Y0XM = g8XM + 1 < j8XM.length && j8XM.charAt(g8XM + 1) == n0XM;
                    if (Y0XM) {
                        g8XM++;
                    }
                    return Y0XM;
                },
                I8XM = function C0XM(W0XM) {
                    G8XM(W0XM);
                    var y0XM = W0XM == '@' ? 14 : W0XM == '!' ? 20 : W0XM == 'y' ? 4 : W0XM == 'o' ? 3 : 2,
                        a0XM = new RegExp('^\\d{1,' + y0XM + '}'),
                        m0XM = F8XM.substr(L8XM).match(a0XM);
                    if (!m0XM) {
                        return 0;
                    }
                    L8XM += m0XM[0].length;
                    return parseInt(m0XM[0], 10);
                },
                d0XM = function E0XM(V0XM, z0XM, l0XM) {
                    var K0XM = G8XM(V0XM) ? l0XM : z0XM,
                        P0XM;
                    for (P0XM = 0; P0XM < K0XM.length; P0XM++) {
                        if (F8XM.substr(L8XM, K0XM[P0XM].length).toLowerCase() == K0XM[P0XM].toLowerCase()) {
                            L8XM += K0XM[P0XM].length;
                            return P0XM + 1;
                        }
                    }
                    return 0;
                },
                Z0XM = function A0XM() {
                    L8XM++;
                },
                L8XM = 0,
                g8XM;
            for (g8XM = 0; g8XM < j8XM.length; g8XM++) {
                if (p0XM) {
                    if (j8XM.charAt(g8XM) == "'" && !G8XM("'")) {
                        p0XM = false;
                    } else {
                        Z0XM();
                    }
                } else {
                    switch (j8XM.charAt(g8XM)) {
                        case 'd':
                            U8XM = I8XM('d');
                            break;
                        case 'D':
                            d0XM('D', B8XM.dayNamesShort, B8XM.dayNames);
                            break;
                        case 'o':
                            N0XM = I8XM('o');
                            break;
                        case 'm':
                            u8XM = I8XM('m');
                            break;
                        case 'M':
                            u8XM = d0XM('M', B8XM.monthNamesShort, B8XM.monthNames);
                            break;
                        case 'y':
                            O8XM = I8XM('y');
                            break;
                        case 'H':
                            e8XM = I8XM('H');
                            break;
                        case 'h':
                            e8XM = I8XM('h');
                            break;
                        case 'i':
                            h0XM = I8XM('i');
                            break;
                        case 's':
                            D0XM = I8XM('s');
                            break;
                        case 'a':
                            x8XM = d0XM('a', [B8XM.amText, B8XM.pmText], [B8XM.amText, B8XM.pmText]) - 1;
                            break;
                        case 'A':
                            x8XM = d0XM('A', [B8XM.amText, B8XM.pmText], [B8XM.amText, B8XM.pmText]) - 1;
                            break;
                        case "'":
                            if (G8XM("'")) {
                                Z0XM();
                            } else {
                                p0XM = true;
                            }
                            break;
                        default:
                            Z0XM();
                    }
                }
            }
            if (O8XM < 100) {
                O8XM += new Date().getFullYear() - new Date().getFullYear() % 100 + (O8XM <= (typeof M0XM != 'string' ? M0XM : new Date().getFullYear() % 100 + parseInt(M0XM, 10)) ? 0 : -100);
            }
            if (N0XM > -1) {
                u8XM = 1;
                U8XM = N0XM;
                do {
                    var t0XM = 32 - new Date(O8XM, u8XM - 1, 32, 12).getDate();
                    if (U8XM <= t0XM) {
                        break;
                    }
                    u8XM++;
                    U8XM -= t0XM;
                } while (true);
            }
            e8XM = x8XM == -1 ? e8XM : x8XM && e8XM < 12 ? e8XM + 12 : !x8XM && e8XM == 12 ? 0 : e8XM;
            var S8XM = B8XM.getDate(O8XM, u8XM - 1, U8XM, e8XM, h0XM, D0XM);
            if (B8XM.getYear(S8XM) != O8XM || B8XM.getMonth(S8XM) + 1 != u8XM || B8XM.getDay(S8XM) != U8XM) {
                return J8XM;
            }
            return S8XM;
        }
    };
    U9HM.util.datetime = h66M;
  
  
  
  
  	(function(S3f) {
	 
        var W3f = U9HM,
            D3f = W3f.$,
            R0f = h66M.adjustedDate,
            z0f = {
                separator: ' ',
                dateFormat: 'mm/dd/yy',
                dateDisplay: 'MMddyy',
                timeFormat: 'h:ii A',
                dayText: 'Day',
                monthText: 'Month',
                yearText: 'Year',
                hourText: 'Hours',
                minuteText: 'Minutes',
                ampmText: '&nbsp;',
                secText: 'Seconds',
                nowText: 'Now',
                todayText: 'Today'
            },
            N0f = function(f0f) {
                function j0f(T21, f21, r11, x21, F21, l21, C21, P21) {
                    var a21, q21, h11, K21, c21, H21, j11, b21, y21, I11, G11, e11, s11, D11, z21, w21, N21, S11, W11, R21, i21 = {},
                        g11 = T0f.getDate(x21, F21, l21),
                        n11 = ['a', 'h', 'i', 's'];
                    if (T21) {
                        for (j11 = 0; j11 < T21.length; j11++) {
                            G11 = T21[j11];
                            if (G11.start) {
                                G11.apply = false;
                                h11 = G11.d;
                                N21 = h11 + '';
                                S11 = N21.split('/');
                                if (h11 && (h11.getTime && x21 == T0f.getYear(h11) && F21 == T0f.getMonth(h11) && l21 == T0f.getDay(h11) || !N21.match(/w/i) && (S11[1] && l21 == S11[1] && F21 == S11[0] - 1 || !S11[1] && l21 == S11[0]) || N21.match(/w/i) && g11.getDay() == +N21.replace('w', ''))) {
                                    G11.apply = true;
                                    i21[g11] = true;
                                }
                            }
                        }
                        for (j11 = 0; j11 < T21.length; j11++) {
                            G11 = T21[j11];
                            a21 = 0;
                            w21 = 0;
                            b21 = w0f[r11];
                            y21 = q0f[r11];
                            D11 = true;
                            z21 = true;
                            q21 = false;
                            if (G11.start && (G11.apply || !G11.d && !i21[g11])) {
                                e11 = G11.start.split(':');
                                s11 = G11.end.split(':');
                                for (I11 = 0; I11 < 3; I11++) {
                                    if (e11[I11] === S3f) {
                                        e11[I11] = 0;
                                    }
                                    if (s11[I11] === S3f) {
                                        s11[I11] = 59;
                                    }
                                    e11[I11] = +e11[I11];
                                    s11[I11] = +s11[I11];
                                }
                                if (r11 == 'tt') {
                                    b21 = H0f(Math.round((new Date(g11).setHours(e11[0], e11[1], e11[2]) - new Date(g11).setHours(0, 0, 0, 0)) / 1000), Q0f, 0, 86400);
                                    y21 = H0f(Math.round((new Date(g11).setHours(s11[0], s11[1], s11[2]) - new Date(g11).setHours(0, 0, 0, 0)) / 1000), Q0f, 0, 86400);
                                } else {
                                    e11.unshift(e11[0] > 11 ? 1 : 0);
                                    s11.unshift(s11[0] > 11 ? 1 : 0);
                                    if (P0f) {
                                        if (e11[1] >= 12) {
                                            e11[1] = e11[1] - 12;
                                        }
                                        if (s11[1] >= 12) {
                                            s11[1] = s11[1] - 12;
                                        }
                                    }
                                    for (I11 = 0; I11 < f21; I11++) {
                                        if (F0f[I11] !== S3f) {
                                            W11 = H0f(e11[I11], c0f[n11[I11]], w0f[n11[I11]], q0f[n11[I11]]);
                                            R21 = H0f(s11[I11], c0f[n11[I11]], w0f[n11[I11]], q0f[n11[I11]]);
                                            K21 = 0;
                                            c21 = 0;
                                            H21 = 0;
                                            if (P0f && I11 == 1) {
                                                K21 = e11[0] ? 12 : 0;
                                                c21 = s11[0] ? 12 : 0;
                                                H21 = F0f[0] ? 12 : 0;
                                            }
                                            if (!D11) {
                                                W11 = 0;
                                            }
                                            if (!z21) {
                                                R21 = q0f[n11[I11]];
                                            }
                                            if ((D11 || z21) && (W11 + K21 < F0f[I11] + H21 && F0f[I11] + H21 < R21 + c21)) {
                                                q21 = true;
                                            }
                                            if (F0f[I11] != W11) {
                                                D11 = false;
                                            }
                                            if (F0f[I11] != R21) {
                                                z21 = false;
                                            }
                                        }
                                    }
                                    if (!P21) {
                                        for (I11 = f21 + 1; I11 < 4; I11++) {
                                            if (e11[I11] > 0) {
                                                a21 = c0f[r11];
                                            }
                                            if (s11[I11] < q0f[n11[I11]]) {
                                                w21 = c0f[r11];
                                            }
                                        }
                                    }
                                    if (!q21) {
                                        W11 = H0f(e11[f21], c0f[r11], w0f[r11], q0f[r11]) + a21;
                                        R21 = H0f(s11[f21], c0f[r11], w0f[r11], q0f[r11]) - w21;
                                        if (D11) {
                                            b21 = W11;
                                        }
                                        if (z21) {
                                            y21 = R21;
                                        }
                                    }
                                }
                                if (D11 || z21 || q21) {
                                    for (I11 = b21; I11 <= y21; I11 += c0f[r11]) {
                                        C21[I11] = !P21;
                                    }
                                }
                            }
                        }
                    }
                }

                function g0f(J11, O11, k11, V11, B11, u11, o11) {
                    var X11, v11, L11, Y11;
                    if (J11) {
                        for (v11 = 0; v11 < J11.length; v11++) {
                            X11 = J11[v11];
                            Y11 = X11 + '';
                            if (!X11.start) {
                                if (X11.getTime) {
                                    if (T0f.getYear(X11) == O11 && T0f.getMonth(X11) == k11) {
                                        u11[T0f.getDay(X11)] = o11;
                                    }
                                } else if (!Y11.match(/w/i)) {
                                    Y11 = Y11.split('/');
                                    if (Y11[1]) {
                                        if (Y11[0] - 1 == k11) {
                                            u11[Y11[1]] = o11;
                                        }
                                    } else {
                                        u11[Y11[0]] = o11;
                                    }
                                } else {
                                    Y11 = +Y11.replace('w', '');
                                    for (L11 = Y11 - V11; L11 < B11; L11 += 7) {
                                        if (L11 >= 0) {
                                            u11[L11 + 1] = o11;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }

                function s0f(M11, p11) {
                    var Q11, m11, Z11;
                    if (p11) {
                        for (m11 = 0; m11 < p11.length; m11++) {
                            Q11 = p11[m11];
                            Z11 = Q11 + '';
                            if (!Q11.start) {
                                if (Q11.getTime) {
                                    if (M11.getFullYear() == Q11.getFullYear() && M11.getMonth() == Q11.getMonth() && M11.getDate() == Q11.getDate()) {
                                        return true;
                                    }
                                } else if (!Z11.match(/w/i)) {
                                    Z11 = Z11.split('/');
                                    if (Z11[1]) {
                                        if (Z11[0] - 1 == M11.getMonth() && Z11[1] == M11.getDate()) {
                                            return true;
                                        }
                                    } else if (Z11[0] == M11.getDate()) {
                                        return true;
                                    }
                                } else {
                                    Z11 = +Z11.replace('w', '');
                                    if (Z11 == M11.getDay()) {
                                        return true;
                                    }
                                }
                            }
                        }
                    }
                    return false;
                }

                function x0f(t11, U11) {
                    if (!U11 && t11 < b0f) {
                        return false;
                    }
                    if (!U11 && t11 > a0f) {
                        return false;
                    }
                    if (s0f(t11, L0f)) {
                        return true;
                    }
                    if (s0f(t11, X0f)) {
                        return false;
                    }
                    return true;
                }

                function F51(F11, C11) {
                    var w11, a11, P11 = false,
                        i11 = false,
                        A11 = 0,
                        E11 = 0,
                        d11 = b0f ? C0f(E0f(b0f)) : -Infinity,
                        x11 = a0f ? C0f(E0f(a0f)) : Infinity;
                    if (x0f(F11)) {
                        return F11;
                    }
                    if (F11 < d11) {
                        F11 = d11;
                    }
                    if (F11 > x11) {
                        F11 = x11;
                    }
                    w11 = F11;
                    a11 = F11;
                    if (C11 !== 2) {
                        P11 = x0f(w11);
                        while (!P11 && w11 < x11) {
                            w11 = new Date(w11.getTime() + 1000 * 60 * 60 * 24);
                            P11 = x0f(w11);
                            A11++;
                        }
                    }
                    if (C11 !== 1) {
                        i11 = x0f(a11);
                        while (!i11 && a11 > d11) {
                            a11 = new Date(a11.getTime() - 1000 * 60 * 60 * 24);
                            i11 = x0f(a11);
                            E11++;
                        }
                    }
                    if (C11 === 1 && P11) {
                        return w11;
                    }
                    if (C11 === 2 && i11) {
                        return a11;
                    }
					
                    return E11 <= A11 && i11 ? a11 : w11;
                }

                function w51(q11) {
                    var l11, c11, K11, H11 = {};
                    if (q11.is('input')) {
                        switch (q11.attr('type')) {
                            case 'date':
                                l11 = 'yy-mm-dd';
                                break;
                            case 'datetime':
                                l11 = 'yy-mm-ddTHH:ii:ssZ';
                                break;
                            case 'datetime-local':
                                l11 = 'yy-mm-ddTHH:ii:ss';
                                break;
                            case 'month':
                                l11 = 'yy-mm';
                                H11.dateOrder = 'mmyy';
                                break;
                            case 'time':
                                l11 = 'HH:ii:ss';
                                break;
                        }
                        H11.format = l11;
                        c11 = q11.attr('min');
                        K11 = q11.attr('max');
                        if (c11) {
                            H11.min = h66M.parseDate(l11, c11);
                        }
                        if (K11) {
                            H11.max = h66M.parseDate(l11, K11);
                        }
                    }
                    return H11;
                }

                function a51(y11, b11) {
                    return b11 ? Math.floor(new Date(y11) / 86400000) : y11.getMonth() + 12 * (y11.getFullYear() - 1970);
                }

                function E0f(R11, f11) {
                    var z11, W51, N11 = ['y', 'm', 'd', 'a', 'h', 'i', 's', 'u', 'dd', 'tt'],
                        T11 = [];
                    if (R11 === null || R11 === S3f) {
                        return R11;
                    }
                    for (z11 = 0; z11 < N11.length; z11++) {
                        W51 = N11[z11];
                        if (y0f[W51] !== S3f) {
                            T11[y0f[W51]] = l0f[W51](R11);
                        }
                        if (f11) {
                            A0f[W51] = l0f[W51](R11);
                        }
                    }
                    return T11;
                }

                function C0f(n51) {
                    var G51, j51 = new Date(new Date().setHours(0, 0, 0, 0));
                    if (n51 === null) {
                        return n51;
                    }
                    if (y0f.dd !== S3f) {
                        G51 = n51[y0f.dd].split('-');
                        G51 = new Date(G51[0], G51[1] - 1, G51[2]);
                    }
                    if (y0f.tt !== S3f) {
                        G51 = G51 || j51;
                        G51 = new Date(G51.getTime() + n51[y0f.tt] % 86400 * 1000);
                    }
                    var g51 = K0f(n51, 'y', G51, j51),
                        h51 = K0f(n51, 'm', G51, j51),
                        D51 = Math.min(K0f(n51, 'd', G51, j51), T0f.getMaxDayOfMonth(g51, h51)),
                        S51 = K0f(n51, 'h', G51, j51);
                    return T0f.getDate(g51, h51, D51, P0f && K0f(n51, 'a', G51, j51) ? S51 + 12 : S51, K0f(n51, 'i', G51, j51), K0f(n51, 's', G51, j51), K0f(n51, 'u', G51, j51));
                }

                function K0f(e51, O51, s51, r51) {
                    var I51;
                    if (y0f[O51] !== S3f) {
                        I51 = +e51[y0f[O51]];
                        if (!isNaN(I51)) {
                            return I51;
                        }
                    }
                    if (s51) {
                        return l0f[O51](s51);
                    }
                    if (A0f[O51] !== S3f) {
                        return A0f[O51];
                    }
                    return l0f[O51](r51);
                }

                function T51(V51) {
                    return H0f(Math.round((V51.getTime() - new Date(V51).setHours(0, 0, 0, 0)) / 1000), Q0f, 0, 86400);
                }

                function W0f(B51) {
                    return B51.getFullYear() + '-' + z51(B51.getMonth() + 1) + '-' + z51(B51.getDate());
                }

                function f51(k51) {
                    return k51.getHours() > 11 ? 1 : 0;
                }

                function y51(J51) {
                    return J51.getMilliseconds();
                }

                function b51(o51) {
                    return H0f(o51.getSeconds(), Z0f, u0f, B0f);
                }

                function l51(u51) {
                    return H0f(u51.getMinutes(), i0f, U0f, V0f);
                }

                function H51(v51) {
                    var L51 = v51.getHours();
                    L51 = P0f && L51 >= 12 ? L51 - 12 : L51;
                    return H0f(L51, t0f, m0f, I0f);
                }

                function q51(X51) {
                    return T0f.getDay(X51);
                }

                function c51(Y51) {
                    return T0f.getMonth(Y51);
                }

                function K51(p51) {
                    return T0f.getYear(p51);
                }

                function J0f(M51, Q51, m51) {
                    return Math.floor((m51 - Q51) / M51) * M51 + Q51;
                }

                function H0f(t51, A51, U51, Z51) {
                    return Math.min(Z51, Math.floor(t51 / A51) * A51 + U51);
                }

                function R51(C51) {
                    var d51, x51, P51, E51 = [];
                    if (C51) {
                        for (d51 = 0; d51 < C51.length; d51++) {
                            x51 = C51[d51];
                            if (x51.start && x51.start.getTime) {
                                P51 = new Date(x51.start);
                                while (P51 <= x51.end) {
                                    E51.push(R0f(P51.getFullYear(), P51.getMonth(), P51.getDate()));
                                    P51.setDate(P51.getDate() + 1);
                                }
                            } else {
                                E51.push(x51);
                            }
                        }
                        return E51;
                    }
                    return C51;
                }
				
				function ai(a) {
					return {
						value: a,
						display: (/yy/i.test(Y0f) ? a : (a + '').substr(2, 2)) + (T0f.yearSuffix || '')
					};
				}
				 
				function ad(a) {
					return a;
				}
				
				function ak(b) {
					var a = /d/i.test(b);
					
					return {
						label: '',
						cssClass: 'mbsc-dt-whl-date',
						min: (b0f) ? a51(W0f(b0f), a) : -Infinity,
						max: (a0f) ? a51(W0f(a0f), a) : Infinity,
						data: function(e) {
							var g = new Date(new Date().setHours(0, 0, 0, 0)),
								d = a ? new Date(e * 8.64e7) : new Date(1970, e, 1);
							if (a) {
								d = new Date(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate());
							}
							return {
								invalid: a && !x0f(d, true),
								value: W0f(d),
								display: g.getTime() == d.getTime() ? T0f.todayText : h66M.formatDate(b, d, T0f)
							};
						},
						getIndex: function(b) {
							return a51(b, a);
						}
					};
				}
				
				function ab(d) {
					var a, b, g, e = [];
					if (/s/i.test(d)) {
						b = z;
					} else if (/i/i.test(d)) {
						b = i0f * 60;
					} else if (/h/i.test(d)) {
						b = t0f * 3600;
					}
					Q0f = c0f.tt = b;
					for (a = 0; a < 86400; a += b) {
						g = new Date(new Date().setHours(0, 0, 0, 0) + a * 1000);
						e.push({
							value: a,
							display: h66M.formatDate(d, g, T0f)
						});
					}
					return {
						label: '',
						cssClass: 'mbsc-dt-whl-time',
						data: e
					};
				}

				 function a6() {
						var p, s, c, l, b, g, e, n, d = 0,
							o = [],
							m = [],
							i = [];
						if (M0f.match(/date/i)) {
							p = SS0f.split(/\|/.test(SS0f) ? '|' : '');
							for (l = 0; l < p.length; l++) {
								c = p[l];
								g = 0;
								if (c.length) {
									if (/y/i.test(c)) {
										g++;
									}
									if (/m/i.test(c)) {
										g++;
									}
									if (/d/i.test(c)) {
										g++;
									}
									

									if (g > 1 && y0f.dd === S3f) {
										y0f.dd = d;
										d++;		
										m.push(ak(c));
										i = m;
										a2 = true;
									} else if (/y/i.test(c) && y0f.y === S3f) {
										y0f.y = d;
										d++;
										
										m.push({
											cssClass: 'mbsc-dt-whl-y',
											label: T0f.yearText,
											min: (b0f) ? T0f.getYear(b0f) : -Infinity,
											max: (a0f) ? T0f.getYear(a0f) : Infinity,
											data: ai,
											getIndex: ad
										});
										
									} else if (/m/i.test(c) && y0f.m === S3f) {
										y0f.m = d;
										e = [];
										d++;
										for (b = 0; b < 12; b++) {
											n = Y0f.replace(/[dy]/gi, '').replace(/mm/, z51(b + 1) + (T0f.monthSuffix || '')).replace(/m/, b + 1 + (T0f.monthSuffix || ''));
											e.push({
												value: b,
												display: /MM/.test(n) ? n.replace(/MM/, '<span class="mbsc-dt-month">' + T0f.monthNames[b] + '</span>') : n.replace(/M/, '<span class="mbsc-dt-month">' + T0f.monthNamesShort[b] + '</span>')
											});
										}
										m.push({
											cssClass: 'mbsc-dt-whl-m',
											label: T0f.monthText,
											data: e
										});
									} else if (/d/i.test(c) && y0f.d === S3f) {
										y0f.d = d;
										e = [];
										d++;
										for (b = 1; b < 32; b++) {
											e.push({
												value: b,
												display: (/dd/i.test(Y0f) ? z51(b) : b) + (T0f.daySuffix || '')
											});
										}
										m.push({
											cssClass: 'mbsc-dt-whl-d',
											label: T0f.dayText,
											data: e
										});
									}
								}
							}
							o.push(m);
						}
						if (M0f.match(/time/i)) {
							s = h0f.split(/\|/.test(h0f) ? '|' : '');
							for (l = 0; l < s.length; l++) {
								c = s[l];
								g = 0;
								if (c.length) {
									if (/h/i.test(c)) {
										g++;
									}
									if (/i/i.test(c)) {
										g++;
									}
									if (/s/i.test(c)) {
										g++;
									}
									if (/a/i.test(c)) {
										g++;
									}
								}
								if (g > 1 && y0f.tt === S3f) {
									y0f.tt = d;
									d++;
									i.push(ab(c));
								} else if (/h/i.test(c) && y0f.h === S3f) {
									e = [];
									y0f.h = d;
									d++;
									for (b = m0f; b < (P0f ? 12 : 24); b += t0f) {
										e.push({
											value: b,
											display: P0f && b === 0 ? 12 : /hh/i.test(G0f) ? z51(b) : b
										});
									}
									i.push({
										cssClass: 'mbsc-dt-whl-h',
										label: T0f.hourText,
										data: e
									});
								} else if (/i/i.test(c) && y0f.i === S3f) {
									e = [];
									y0f.i = d;
									d++;
									for (b = U0f; b < 60; b += i0f) {
										e.push({
											value: b,
											display: /ii/i.test(G0f) ? z51(b) : b
										});
									}
									i.push({
										cssClass: 'mbsc-dt-whl-i',
										label: T0f.minuteText,
										data: e
									});
								} else if (/s/i.test(c) && y0f.s === S3f) {
									e = [];
									y0f.s = d;
									d++;
									for (b = O; b < 60; b += z) {
										e.push({
											value: b,
											display: /ss/i.test(G0f) ? z51(b) : b
										});
									}
									i.push({
										cssClass: 'mbsc-dt-whl-s',
										label: T0f.secText,
										data: e
									});
								} else if (/a/i.test(c) && y0f.a === S3f) {
									y0f.a = d;
									d++;
									i.push({
										cssClass: 'mbsc-dt-whl-a',
										label: T0f.ampmText,
										data: /A/.test(c) ? [{
											value: 0,
											display: T0f.amText.toUpperCase()
										}, {
											value: 1,
											display: T0f.pmText.toUpperCase()
										}] : [{
											value: 0,
											display: T0f.amText
										}, {
											value: 1,
											display: T0f.pmText
										}]
									});
								}
							}
							if (i != m) {
								o.push(i);
							}
						}
						return o;
					}
				

                function z51(i51) {
                    return i51 < 10 ? '0' + i51 : i51;
                }

                var Q0f, r0f, D0f, y0f = {},
                    A0f = {},
                    F0f = [],
                    k0f = w51(D3f(this)),
                    e0f = D3f.extend({}, f0f.settings),
                    T0f = D3f.extend(f0f.settings, W3f.util.datetime.defaults, z0f, k0f, e0f),
                    X0f = R51(T0f.invalid),
                    L0f = R51(T0f.valid),
                    M0f = T0f.preset,
                    p0f = M0f == 'datetime' ? T0f.dateFormat + T0f.separator + T0f.timeFormat : M0f == 'time' ? T0f.timeFormat : T0f.dateFormat,
                    O0f = k0f.format || p0f,
					SS0f = T0f.dateWheels || T0f.dateFormat,
                    h0f = T0f.timeWheels || T0f.timeFormat,
                    Y0f = T0f.dateWheels || T0f.dateDisplay,
                    G0f = h0f,
                    n0f = T0f.baseTheme || T0f.theme,
                    b0f = T0f.min,
                    a0f = T0f.max,
                    o0f = /time/i.test(M0f),
                    P0f = /h/.test(G0f),
                    S0f = /D/.test(Y0f),
                    d0f = T0f.steps || {},
                    t0f = d0f.hour || T0f.stepHour || 1,
                    i0f = d0f.minute || T0f.stepMinute || 1,
                    Z0f = d0f.second || T0f.stepSecond || 1,
                    v0f = d0f.zeroBased,
                    m0f = v0f || !b0f ? 0 : b0f.getHours() % t0f,
                    U0f = v0f || !b0f ? 0 : b0f.getMinutes() % i0f,
                    u0f = v0f || !b0f ? 0 : b0f.getSeconds() % Z0f,
                    I0f = J0f(t0f, m0f, P0f ? 11 : 23),
                    V0f = J0f(i0f, U0f, 59),
                    B0f = J0f(i0f, U0f, 59),
                    w0f = {
                        y: b0f ? b0f.getFullYear() : -Infinity,
                        m: 0,
                        d: 1,
                        h: m0f,
                        i: U0f,
                        s: u0f,
                        a: 0,
                        tt: 0
                    },
                    q0f = {
                        y: a0f ? a0f.getFullYear() : Infinity,
                        m: 11,
                        d: 31,
                        h: I0f,
                        i: V0f,
                        s: B0f,
                        a: 1,
                        tt: 86400
                    },
                    c0f = {
                        y: 1,
                        m: 1,
                        d: 1,
                        h: t0f,
                        i: i0f,
                        s: Z0f,
                        a: 1,
                        tt: 1
                    },
                    N51 = {
                        'android-holo': 40,
                        bootstrap: 46,
                        ios: 50,
                        jqm: 46,
                        material: 46,
                        mobiscroll: 46,
                        wp: 50
                    },
                    l0f = {
                        y: K51,
                        m: c51,
                        d: q51,
                        h: H51,
                        i: l51,
                        s: b51,
                        u: y51,
                        a: f51,
                        dd: W0f,
                        tt: T51
                    };
                f0f.getDate = f0f.getVal = function(d21) {
                    return f0f._hasValue || d21 ? C0f(f0f.getArrayVal(d21)) : null;
                };
                f0f.setDate = function(E21, A21, t21, U21, Z21) {
                    f0f.setArrayVal(E0f(E21), A21, Z21, U21, t21);
                };

				D0f = a6();
                f0f.format = p0f;
                f0f.order = y0f;
				
                f0f.handlers.now = function() {
                    f0f.setDate(new Date(), f0f.live, 1000, true, true);
                };
                f0f.buttons.now = {
                    text: T0f.nowText,
                    icon: T0f.nowIcon,
                    handler: 'now'
                };
                return {
                    minWidth: r0f && o0f ? N51[n0f] : S3f,
                    compClass: 'mbsc-dt',
                    wheels: D0f,
                    headerText: T0f.headerText ? function() {
                        return h66M.formatDate(p0f, C0f(f0f.getArrayVal(true)), T0f);
                    } : false,
                    formatValue: function(M21) {
                        return h66M.formatDate(O0f, C0f(M21), T0f);
                    },
                    parseValue: function(Q21) {
                        if (!Q21) {
                            A0f = {};
                        }
                        return E0f(Q21 ? h66M.parseDate(O0f, Q21, T0f) : T0f.defaultValue && T0f.defaultValue.getTime ? T0f.defaultValue : new Date(), !!Q21 && !!Q21.getTime);
                    },
                    validate: function(s21) {
                        var m21, v21, J21, r21, G21 = s21.values,
                            V21 = s21.index,
                            e21 = s21.direction,
                            L21 = f0f.settings.wheels[0][y0f.d],
                            X21 = F51(C0f(G21), e21),
                            O21 = E0f(X21),
                            u21 = [],
                            I21 = {},
                            Y21 = l0f.y(X21),
                            p21 = l0f.m(X21),
                            o21 = T0f.getMaxDayOfMonth(Y21, p21),
                            k21 = true,
                            B21 = true;
                        D3f.each(['dd', 'y', 'm', 'd', 'tt', 'a', 'h', 'i', 's'], function(W21, n21) {
                            if (y0f[n21] !== S3f) {
                                var g21 = w0f[n21],
                                    h21 = q0f[n21],
                                    j21 = l0f[n21](X21);
                                u21[y0f[n21]] = [];
                                if (k21 && b0f) {
                                    g21 = l0f[n21](b0f);
                                }
                                if (B21 && a0f) {
                                    h21 = l0f[n21](a0f);
                                }
                                if (n21 != 'y' && n21 != 'dd') {
                                    for (v21 = w0f[n21]; v21 <= q0f[n21]; v21 += c0f[n21]) {
                                        if (v21 < g21 || v21 > h21) {
                                            u21[y0f[n21]].push(v21);
                                        }
                                    }
                                }
                                if (j21 < g21) {
                                    j21 = g21;
                                }
                                if (j21 > h21) {
                                    j21 = h21;
                                }
                                if (k21) {
                                    k21 = j21 == g21;
                                }
                                if (B21) {
                                    B21 = j21 == h21;
                                }
                                if (n21 == 'd') {
                                    var D21 = T0f.getDate(Y21, p21, 1).getDay(),
                                        S21 = {};
                                    g0f(X0f, Y21, p21, D21, o21, S21, 1);
                                    g0f(L0f, Y21, p21, D21, o21, S21, 0);
                                    D3f.each(S21, function(R61, z61) {
                                        if (z61) {
                                            u21[y0f[n21]].push(R61);
                                        }
                                    });
                                }
                            }
                        });
                        if (o0f) {
                            D3f.each(['a', 'h', 'i', 's', 'tt'], function(f61, N61) {
                                var b61 = l0f[N61](X21),
                                    y61 = l0f.d(X21),
                                    T61 = {};
                                if (y0f[N61] !== S3f) {
                                    j0f(X0f, f61, N61, Y21, p21, y61, T61, 0);
                                    j0f(L0f, f61, N61, Y21, p21, y61, T61, 1);
                                    D3f.each(T61, function(l61, H61) {
                                        if (H61) {
                                            u21[y0f[N61]].push(l61);
                                        }
                                    });
                                    F0f[f61] = f0f.getValidValue(y0f[N61], b61, e21, T61);
                                }
                            });
                        }
                        if (L21 && (L21._length !== o21 || S0f && (V21 === S3f || V21 === y0f.y || V21 === y0f.m))) {
                            I21[y0f.d] = L21;
                            L21.data = [];
                            for (m21 = 1; m21 <= o21; m21++) {
                                r21 = T0f.getDate(Y21, p21, m21).getDay();
                                J21 = Y0f.replace(/[my]/gi, '').replace(/dd/, (m21 < 10 ? '0' + m21 : m21) + (T0f.daySuffix || '')).replace(/d/, m21 + (T0f.daySuffix || ''));
                                L21.data.push({
                                    value: m21,
                                    display: J21.match(/DD/) ? J21.replace(/DD/, '<span class="mbsc-dt-day">' + T0f.dayNames[r21] + '</span>') : J21.replace(/D/, '<span class="mbsc-dt-day">' + T0f.dayNamesShort[r21] + '</span>')
                                });
                            }
                            f0f._tempWheelArray[y0f.d] = O21[y0f.d];
                            f0f.changeWheel(I21);
                        }
                        return {
                            disabled: u21,
                            valid: O21
                        };
                    }
                };
            };
        D3f.each(['date', 'time', 'datetime'], function(c61, q61) {
            W3f.presets.scroller[q61] = N0f;
        });
}());
  
  
  
    var r46M = U9HM.presets.scroller;
    var Y46M = U9HM.classes;
    var X66M = U9HM.util;
    var b66M = X66M.datetime.adjustedDate;
    var R16M = X66M.jsPrefix;
    var i46M = X66M.testTouch;
    var C36M = X66M.getCoord;
    var h46M = X66M.animEnd;
    var I46M = new Date();
    var Q16M = {
        min: new Date(I46M.getFullYear() - 100, 0, 1),
        max: new Date(I46M.getFullYear() + 1, 11, 31, 23, 59, 59),
        controls: ['calendar'],
        firstDay: 0,
        weekDays: 'short',
        maxMonthWidth: 170,
        months: 1,
        preMonths: 1,
        highlight: true,
        outerMonthChange: true,
        quickNav: true,
        yearChange: true,
        todayClass: 'mbsc-cal-today',
        btnCalPrevClass: 'mbsc-ic mbsc-ic-arrow-left6',
        btnCalNextClass: 'mbsc-ic mbsc-ic-arrow-right6',
        dateText: 'Date',
        timeText: 'Time',
        calendarText: 'Calendar',
        todayText: 'Today',
        prevMonthText: 'Previous Month',
        nextMonthText: 'Next Month',
        prevYearText: 'Previous Year',
        nextYearText: 'Next Year'
    };
    r46M.calbase = function(g3jM) {
        function D7jM(t7jM) {
            var h7jM;
            m4jM = u9HM(this);
            E2jM = false;
            if (t7jM.type != 'keydown') {
                U2jM = C36M(t7jM, 'X');
                j2jM = C36M(t7jM, 'Y');
                h7jM = i46M(t7jM, this);
            } else {
                h7jM = t7jM.keyCode === 32;
            }
            if (!t4jM && h7jM && !m4jM.hasClass('mbsc-fr-btn-d')) {
                t4jM = true;
                setTimeout(B2jM, 100);
                if (t7jM.type == 'mousedown') {
                    u9HM(document).on('mousemove', f2jM).on('mouseup', T2jM);
                }
            }
        }

        function f2jM(q7jM) {
            if (Math.abs(U2jM - C36M(q7jM, 'X')) > 7 || Math.abs(j2jM - C36M(q7jM, 'Y')) > 7) {
                t4jM = false;
                m4jM.removeClass('mbsc-fr-btn-a');
            }
        }

        function T2jM(o7jM) {
            if (o7jM.type == 'touchend') {
                o7jM.preventDefault();
            }
            if (m4jM && !E2jM) {
                B2jM();
            }
            t4jM = false;
            if (o7jM.type == 'mouseup') {
                u9HM(document).off('mousemove', f2jM).off('mouseup', T2jM);
            }
        }

        function B2jM() {
            E2jM = true;
            if (m4jM.hasClass('mbsc-cal-prev-m')) {
                Q2jM();
            } else if (m4jM.hasClass('mbsc-cal-next-m')) {
                z2jM();
            } else if (m4jM.hasClass('mbsc-cal-prev-y')) {
                H2jM(m4jM);
            } else if (m4jM.hasClass('mbsc-cal-next-y')) {
                G2jM(m4jM);
            }
        }

        function N7jM(Y7jM) {
            if (Y7jM < b66M(I4jM.getFullYear(), I4jM.getMonth(), I4jM.getDate())) {
                return false;
            }
            if (Y7jM > S2jM) {
                return false;
            }
            return g2jM[Y7jM] === undefined || I2jM[Y7jM] !== undefined;
        }

        function C2jM(K7jM, y7jM, E7jM) {
            var a7jM, W7jM, n7jM, m7jM, C7jM = {},
                P7jM = j3jM + e4jM;
            if (K7jM) {
                u9HM.each(K7jM, function(r7jM, V7jM) {
                    a7jM = V7jM.d || V7jM.start || V7jM;
                    W7jM = a7jM + '';
                    if (V7jM.start && V7jM.end) {
                        m7jM = new Date(V7jM.start);
                        while (m7jM <= V7jM.end) {
                            n7jM = b66M(m7jM.getFullYear(), m7jM.getMonth(), m7jM.getDate());
                            C7jM[n7jM] = C7jM[n7jM] || [];
                            C7jM[n7jM].push(V7jM);
                            m7jM.setDate(m7jM.getDate() + 1);
                        }
                    } else if (a7jM.getTime) {
                        n7jM = b66M(a7jM.getFullYear(), a7jM.getMonth(), a7jM.getDate());
                        C7jM[n7jM] = C7jM[n7jM] || [];
                        C7jM[n7jM].push(V7jM);
                    } else if (!W7jM.match(/w/i)) {
                        W7jM = W7jM.split('/');
                        if (W7jM[1]) {
                            if (E7jM + P7jM >= 11) {
                                n7jM = F3jM.getDate(y7jM + 1, W7jM[0] - 1, W7jM[1]);
                                C7jM[n7jM] = C7jM[n7jM] || [];
                                C7jM[n7jM].push(V7jM);
                            }
                            if (E7jM - P7jM <= 1) {
                                n7jM = F3jM.getDate(y7jM - 1, W7jM[0] - 1, W7jM[1]);
                                C7jM[n7jM] = C7jM[n7jM] || [];
                                C7jM[n7jM].push(V7jM);
                            }
                            n7jM = F3jM.getDate(y7jM, W7jM[0] - 1, W7jM[1]);
                            C7jM[n7jM] = C7jM[n7jM] || [];
                            C7jM[n7jM].push(V7jM);
                        } else {
                            for (C4jM = 0; C4jM < o4jM; C4jM++) {
                                n7jM = F3jM.getDate(y7jM, E7jM - j3jM - x3jM + C4jM, W7jM[0]);
                                if (F3jM.getDay(n7jM) == W7jM[0]) {
                                    C7jM[n7jM] = C7jM[n7jM] || [];
                                    C7jM[n7jM].push(V7jM);
                                }
                            }
                        }
                    } else {
                        var A7jM = +W7jM.replace('w', ''),
                            z7jM = 0,
                            l7jM = F3jM.getDate(y7jM, E7jM - j3jM - x3jM, 1).getDay();
                        if (F3jM.firstDay - l7jM + 1 > 1) {
                            z7jM = 7;
                        }
                        for (C4jM = 0; C4jM < o4jM * 5; C4jM++) {
                            n7jM = F3jM.getDate(y7jM, E7jM - j3jM - x3jM, C4jM * 7 - z7jM - l7jM + 1 + A7jM);
                            C7jM[n7jM] = C7jM[n7jM] || [];
                            C7jM[n7jM].push(V7jM);
                        }
                    }
                });
            }
            return C7jM;
        }

        function e2jM(b7jM, c7jM) {
            g2jM = C2jM(F3jM.invalid, b7jM, c7jM);
            I2jM = C2jM(F3jM.valid, b7jM, c7jM);
            g3jM.onGenMonth(b7jM, c7jM);
        }

        function x2jM(f7jM, Q7jM, v7jM, s7jM, R7jM, k7jM, i7jM) {
            var T7jM = '<div class="mbsc-cal-h mbsc-cal-sc-c mbsc-cal-' + f7jM + '-c ' + (F3jM.calendarClass || '') + '"><div class="mbsc-cal-sc"><div class="mbsc-cal-sc-p"><div class="mbsc-cal-sc-tbl"><div class="mbsc-cal-sc-row">';
            for (I3jM = 1; I3jM <= Q7jM; I3jM++) {
                if (I3jM <= 12 || I3jM > v7jM) {
                    T7jM += '<div class="mbsc-cal-sc-m-cell mbsc-cal-sc-cell mbsc-cal-sc-empty"><div class="mbsc-cal-sc-cell-i">&nbsp;</div></div>';
                } else {
                    T7jM += '<div tabindex="0" role="button"' + (k7jM ? ' aria-label="' + k7jM[I3jM - 13] + '"' : '') + ' class="mbsc-fr-btn-e mbsc-fr-btn-nhl mbsc-cal-sc-m-cell mbsc-cal-sc-cell mbsc-cal-' + f7jM + '-s" data-val=' + (s7jM + I3jM - 13) + '><div class="mbsc-cal-sc-cell-i mbsc-cal-sc-tbl"><div class="mbsc-cal-sc-cell">' + (i7jM ? i7jM[I3jM - 13] : s7jM + I3jM - 13 + R7jM) + '</div></div></div>';
                }
                if (I3jM < Q7jM) {
                    if (I3jM % 12 === 0) {
                        T7jM += '</div></div></div><div class="mbsc-cal-sc-p" style="' + (Y4jM ? 'top' : E4jM ? 'right' : 'left') + ':' + Math.round(I3jM / 12) * 100 + '%"><div class="mbsc-cal-sc-tbl"><div class="mbsc-cal-sc-row">';
                    } else if (I3jM % 3 === 0) {
                        T7jM += '</div><div class="mbsc-cal-sc-row">';
                    }
                }
            }
            T7jM += '</div></div></div></div></div>';
            return T7jM;
        }

        function x4jM(q1jM, o1jM) {
            var H7jM, G7jM, g7jM, J7jM, U7jM, t1jM, F7jM, S7jM, w7jM, Z1jM, O7jM, x7jM, u7jM, h1jM, d1jM, B7jM, e7jM = 1,
                p1jM = 0,
                N1jM = F3jM.getDate(q1jM, o1jM, 1),
                D1jM = F3jM.getYear(N1jM),
                j7jM = F3jM.getMonth(N1jM),
                X7jM = F3jM.defaultValue === null && !g3jM._hasValue ? null : g3jM.getDate(true),
                L7jM = F3jM.getDate(D1jM, j7jM, 1).getDay(),
                I7jM = '<div class="mbsc-cal-table">',
                M1jM = '<div class="mbsc-cal-week-nr-c">';
            if (F3jM.firstDay - L7jM + 1 > 1) {
                p1jM = 7;
            }
            for (B7jM = 0; B7jM < 42; B7jM++) {
                d1jM = B7jM + F3jM.firstDay - p1jM;
                H7jM = F3jM.getDate(D1jM, j7jM, d1jM - L7jM + 1);
                g7jM = H7jM.getFullYear();
                J7jM = H7jM.getMonth();
                U7jM = H7jM.getDate();
                t1jM = F3jM.getMonth(H7jM);
                F7jM = F3jM.getDay(H7jM);
                h1jM = F3jM.getMaxDayOfMonth(g7jM, J7jM);
                S7jM = g7jM + '-' + J7jM + '-' + U7jM;
                w7jM = j9HM({
                    valid: N7jM(H7jM),
                    selected: X7jM && X7jM.getFullYear() === g7jM && X7jM.getMonth() === J7jM && X7jM.getDate() === U7jM
                }, g3jM.getDayProps(H7jM, X7jM));
                Z1jM = w7jM.valid;
                O7jM = w7jM.selected;
                G7jM = w7jM.cssClass;
                x7jM = new Date(H7jM).setHours(12, 0, 0, 0) === new Date().setHours(12, 0, 0, 0);
                u7jM = t1jM !== j7jM;
                a2jM[S7jM] = w7jM;
                if (B7jM % 7 === 0) {
                    I7jM += (B7jM ? '</div>' : '') + '<div class="mbsc-cal-row' + (F3jM.highlight && X7jM && X7jM - H7jM >= 0 && X7jM - H7jM < 1000 * 60 * 60 * 24 * 7 ? ' mbsc-cal-week-hl' : '') + '">';
                }
                if (R4jM && H7jM.getDay() == 1) {
                    if (R4jM == 'month' && u7jM && e7jM > 1) {
                        e7jM = U7jM == 1 ? 1 : 2;
                    } else if (R4jM == 'year') {
                        e7jM = F3jM.getWeekNumber(H7jM);
                    }
                    M1jM += '<div class="mbsc-cal-week-nr"><div class="mbsc-cal-week-nr-i">' + e7jM + '</div></div>';
                    e7jM++;
                }

                I7jM += '<div role="button" tabindex="-1"' + ' aria-label="' + (x7jM ? F3jM.todayText + ', ' : '') + F3jM.dayNames[H7jM.getDay()] + ', ' + F3jM.monthNames[t1jM] + ' ' + F7jM + ' ' + (w7jM.ariaLabel ? ', ' + w7jM.ariaLabel : '') + '"' + (u7jM && !t2jM ? ' aria-hidden="true"' : '') + (O7jM ? ' aria-selected="true"' : '') + (Z1jM ? '' : ' aria-disabled="true"') + ' data-day="' + d1jM % 7 + '"' + ' data-full="' + S7jM + '"' + 'class="mbsc-cal-day ' + (F3jM.dayClass || '') + (O7jM ? ' mbsc-cal-day-sel' : '') + (x7jM ? ' ' + F3jM.todayClass : '') + (G7jM ? ' ' + G7jM : '') + (F7jM == 1 ? ' mbsc-cal-day-first' : '') + (F7jM == h1jM ? ' mbsc-cal-day-last' : '') + (u7jM ? ' mbsc-cal-day-diff' : '') + (Z1jM ? ' mbsc-cal-day-v mbsc-fr-btn-e mbsc-fr-btn-nhl' : ' mbsc-cal-day-inv') + '"><div class="mbsc-cal-day-i ' + (O7jM ? z4jM : '') + ' ' + (F3jM.innerDayClass || '') + '">' + '<div class="mbsc-cal-day-fg">' + F7jM + '</div>' + (w7jM.markup || '') + '<div class="mbsc-cal-day-frame"></div></div></div>';
            }
            I7jM += '</div></div>' + M1jM + '</div>';
            return I7jM;
        }

        function P2jM(n1jM, C1jM, a1jM) {
            var W1jM = F3jM.getDate(n1jM, C1jM, 1),
                Y1jM = F3jM.getYear(W1jM),
                y1jM = F3jM.getMonth(W1jM),
                m1jM = Y1jM + p2jM;
            if (K4jM) {
                if (v4jM) {
                    v4jM.removeClass('mbsc-cal-sc-sel').removeAttr('aria-selected').find('.mbsc-cal-sc-cell-i').removeClass(z4jM);
                }
                if (Y2jM) {
                    Y2jM.removeClass('mbsc-cal-sc-sel').removeAttr('aria-selected').find('.mbsc-cal-sc-cell-i').removeClass(z4jM);
                }
                v4jM = u9HM('.mbsc-cal-year-s[data-val="' + Y1jM + '"]', O3jM).addClass('mbsc-cal-sc-sel').attr('aria-selected', 'true');
                Y2jM = u9HM('.mbsc-cal-month-s[data-val="' + y1jM + '"]', O3jM).addClass('mbsc-cal-sc-sel').attr('aria-selected', 'true');
                v4jM.find('.mbsc-cal-sc-cell-i').addClass(z4jM);
                Y2jM.find('.mbsc-cal-sc-cell-i').addClass(z4jM);
                if (n4jM) {
                    n4jM.scroll(v4jM, a1jM);
                }
                u9HM('.mbsc-cal-month-s', O3jM).removeClass('mbsc-fr-btn-d');
                if (Y1jM === H4jM) {
                    for (I3jM = 0; I3jM < u2jM; I3jM++) {
                        u9HM('.mbsc-cal-month-s[data-val="' + I3jM + '"]', O3jM).addClass('mbsc-fr-btn-d');
                    }
                }
                if (Y1jM === N2jM) {
                    for (I3jM = w2jM + 1; I3jM <= 12; I3jM++) {
                        u9HM('.mbsc-cal-month-s[data-val="' + I3jM + '"]', O3jM).addClass('mbsc-fr-btn-d');
                    }
                }
            }
            if (B4jM.length == 1) {
                B4jM.attr('aria-label', Y1jM).html(m1jM);
            }
            for (I3jM = 0; I3jM < u3jM; ++I3jM) {
                W1jM = F3jM.getDate(n1jM, C1jM - x3jM + I3jM, 1);
                Y1jM = F3jM.getYear(W1jM);
                y1jM = F3jM.getMonth(W1jM);
                m1jM = Y1jM + p2jM;
                u9HM(i2jM[I3jM]).attr('aria-label', F3jM.monthNames[y1jM] + (r4jM ? '' : ' ' + Y1jM)).html((!r4jM && G4jM < j4jM ? m1jM + ' ' : '') + F4jM[y1jM] + (!r4jM && G4jM > j4jM ? ' ' + m1jM : ''));
                if (B4jM.length > 1) {
                    u9HM(B4jM[I3jM]).html(m1jM);
                }
            }
            if (F3jM.getDate(n1jM, C1jM - x3jM - 1, 1) < D4jM) {
                q2jM(u9HM('.mbsc-cal-prev-m', O3jM));
            } else {
                M2jM(u9HM('.mbsc-cal-prev-m', O3jM));
            }
            if (F3jM.getDate(n1jM, C1jM + u3jM - x3jM, 1) > p4jM) {
                q2jM(u9HM('.mbsc-cal-next-m', O3jM));
            } else {
                M2jM(u9HM('.mbsc-cal-next-m', O3jM));
            }
            if (F3jM.getDate(n1jM, C1jM, 1).getFullYear() <= D4jM.getFullYear()) {
                q2jM(u9HM('.mbsc-cal-prev-y', O3jM));
            } else {
                M2jM(u9HM('.mbsc-cal-prev-y', O3jM));
            }
            if (F3jM.getDate(n1jM, C1jM, 1).getFullYear() >= p4jM.getFullYear()) {
                q2jM(u9HM('.mbsc-cal-next-y', O3jM));
            } else {
                M2jM(u9HM('.mbsc-cal-next-y', O3jM));
            }
        }

        function M2jM(E1jM) {
            E1jM.removeClass(A2jM).find('.mbsc-cal-btn-txt').removeAttr('aria-disabled');
        }

        function q2jM(P1jM) {
            P1jM.addClass(A2jM).find('.mbsc-cal-btn-txt').attr('aria-disabled', 'true');
        }

        function p7jM(K1jM) {
            g3jM.trigger('onDayHighlight', {
                date: K1jM
            });
            if (F3jM.highlight) {
                u9HM('.mbsc-cal-day-sel .mbsc-cal-day-i', Z4jM).removeClass(z4jM);
                u9HM('.mbsc-cal-day-sel', Z4jM).removeClass('mbsc-cal-day-sel').removeAttr('aria-selected');
                u9HM('.mbsc-cal-week-hl', Z4jM).removeClass('mbsc-cal-week-hl');
                if (F3jM.defaultValue !== null || g3jM._hasValue) {
                    u9HM('.mbsc-cal-day[data-full="' + K1jM.getFullYear() + '-' + K1jM.getMonth() + '-' + K1jM.getDate() + '"]', Z4jM).addClass('mbsc-cal-day-sel').attr('aria-selected', 'true').find('.mbsc-cal-day-i').addClass(z4jM).closest('.mbsc-cal-row').addClass('mbsc-cal-week-hl');
                }
            }
        }

        function m2jM(V1jM, b1jM) {
            if (N4jM && (q4jM === 'calendar' || b1jM)) {
                var r1jM, l1jM, A1jM = F3jM.getDate(J3jM, U3jM, 1),
                    z1jM = Math.abs((F3jM.getYear(V1jM) - F3jM.getYear(A1jM)) * 12 + F3jM.getMonth(V1jM) - F3jM.getMonth(A1jM));
                if (g3jM.needsSlide && z1jM) {
                    J3jM = F3jM.getYear(V1jM);
                    U3jM = F3jM.getMonth(V1jM);
                    if (V1jM > A1jM) {
                        l1jM = z1jM > j3jM - x3jM + u3jM - 1;
                        U3jM -= l1jM ? 0 : z1jM - j3jM;
                        r1jM = 'next';
                    } else if (V1jM < A1jM) {
                        l1jM = z1jM > j3jM + x3jM;
                        U3jM += l1jM ? 0 : z1jM - j3jM;
                        r1jM = 'prev';
                    }
                    y4jM(J3jM, U3jM, r1jM, Math.min(z1jM, j3jM), l1jM, true);
                }
                if (!b1jM) {
                    c4jM = V1jM;
                    p7jM(V1jM);
                }
                g3jM.needsSlide = true;
            }
        }

        function Z2jM(c1jM, T1jM, f1jM) {
            if (!f1jM) {
                g3jM.trigger('onMonthLoading', {
                    year: c1jM,
                    month: T1jM
                });
            }
            e2jM(c1jM, T1jM);
            for (I3jM = 0; I3jM < o4jM; I3jM++) {
                L3jM[I3jM].html(x4jM(c1jM, T1jM - x3jM - j3jM + I3jM));
            }
            L2jM();
            D2jM = undefined;
            g3jM.trigger('onMonthLoaded', {
                year: c1jM,
                month: T1jM
            });
        }

        function y2jM(k1jM, i1jM) {
            var Q1jM = j3jM,
                s1jM = j3jM;
            while (s1jM && F3jM.getDate(k1jM, i1jM + s1jM + u3jM - x3jM - 1, 1) > p4jM) {
                s1jM--;
            }
            while (Q1jM && F3jM.getDate(k1jM, i1jM - Q1jM - x3jM, 1) < D4jM) {
                Q1jM--;
            }
            j9HM(V4jM.settings, {
                contSize: u3jM * S3jM,
                snap: S3jM,
                minScroll: d4jM - (E4jM ? Q1jM : s1jM) * S3jM,
                maxScroll: d4jM + (E4jM ? s1jM : Q1jM) * S3jM
            });
            V4jM.refresh();
        }

        function L2jM() {
            if (R4jM) {
                F2jM.html(u9HM('.mbsc-cal-week-nr-c', L3jM[j3jM]).html());
            }
            u9HM('.mbsc-cal-slide-a .mbsc-cal-day', i4jM).attr('tabindex', 0);
        }

        function y4jM(v1jM, R1jM, X1jM, H1jM, B1jM, e1jM, F1jM) {
            if (v1jM) {
                k4jM.push({
                    y: v1jM,
                    m: R1jM,
                    dir: X1jM,
                    slideNr: H1jM,
                    load: B1jM,
                    active: e1jM,
                    callback: F1jM
                });
            }
            if (s4jM || !k4jM.length) {
                return;
            }
            var w1jM = k4jM.shift(),
                I1jM;
            v1jM = w1jM.y;
            R1jM = w1jM.m;
            X1jM = w1jM.dir === 'next';
            H1jM = w1jM.slideNr;
            B1jM = w1jM.load;
            e1jM = w1jM.active;
            F1jM = w1jM.callback || S4jM;
            I1jM = F3jM.getDate(v1jM, R1jM, 1);
            v1jM = F3jM.getYear(I1jM);
            R1jM = F3jM.getMonth(I1jM);
            s4jM = true;
            g3jM.changing = true;
            g3jM.trigger('onMonthChange', {
                year: v1jM,
                month: R1jM
            });
            g3jM.trigger('onMonthLoading', {
                year: v1jM,
                month: R1jM
            });
            e2jM(v1jM, R1jM);
            if (B1jM) {
                for (I3jM = 0; I3jM < u3jM; I3jM++) {
                    L3jM[X1jM ? o4jM - u3jM + I3jM : I3jM].html(x4jM(v1jM, R1jM - x3jM + I3jM));
                }
            }
            if (e1jM) {
                w4jM.addClass('mbsc-cal-slide-a');
            }
            setTimeout(function() {
                g3jM.ariaMessage(F3jM.monthNames[R1jM] + ' ' + v1jM);
                P2jM(v1jM, R1jM, 200);
                d4jM = X1jM ? d4jM - S3jM * H1jM * f4jM : d4jM + S3jM * H1jM * f4jM;
                V4jM.scroll(d4jM, e1jM ? 200 : 0, false, function() {
                    var g1jM;
                    L4jM = d4jM;
                    if (L3jM.length) {
                        w4jM.removeClass('mbsc-cal-slide-a').attr('aria-hidden', 'true');
                        if (X1jM) {
                            g1jM = L3jM.splice(0, H1jM);
                            for (I3jM = 0; I3jM < H1jM; I3jM++) {
                                L3jM.push(g1jM[I3jM]);
                                K2jM(L3jM[L3jM.length - 1], +L3jM[L3jM.length - 2].attr('data-curr') + 100 * f4jM);
                            }
                        } else {
                            g1jM = L3jM.splice(o4jM - H1jM, H1jM);
                            for (I3jM = H1jM - 1; I3jM >= 0; I3jM--) {
                                L3jM.unshift(g1jM[I3jM]);
                                K2jM(L3jM[0], +L3jM[1].attr('data-curr') - 100 * f4jM);
                            }
                        }
                        for (I3jM = 0; I3jM < H1jM; I3jM++) {
                            L3jM[X1jM ? o4jM - H1jM + I3jM : I3jM].html(x4jM(v1jM, R1jM - x3jM - j3jM + I3jM + (X1jM ? o4jM - H1jM : 0)));
                            if (B1jM) {
                                L3jM[X1jM ? I3jM : o4jM - H1jM + I3jM].html(x4jM(v1jM, R1jM - x3jM - j3jM + I3jM + (X1jM ? 0 : o4jM - H1jM)));
                            }
                        }
                        for (I3jM = 0; I3jM < u3jM; I3jM++) {
                            L3jM[j3jM + I3jM].addClass('mbsc-cal-slide-a').removeAttr('aria-hidden');
                        }
                        y2jM(v1jM, R1jM);
                        s4jM = false;
                    }
                    if (k4jM.length) {
                        setTimeout(function() {
                            y4jM();
                        }, 10);
                    } else {
                        J3jM = v1jM;
                        U3jM = R1jM;
                        g3jM.changing = false;
                        u9HM('.mbsc-cal-day', i4jM).attr('tabindex', -1);
                        L2jM();
                        if (D2jM !== undefined) {
                            Z2jM(v1jM, R1jM, D2jM);
                        } else {
                            g3jM.trigger('onMonthLoaded', {
                                year: v1jM,
                                month: R1jM
                            });
                        }
                        F1jM();
                    }
                });
            }, 10);
        }

        function Z7jM() {
            var u1jM = u9HM(this),
                j1jM = g3jM.live,
                J1jM = g3jM.getDate(true),
                x1jM = u1jM.attr('data-full'),
                U1jM = x1jM.split('-'),
                O1jM = b66M(U1jM[0], U1jM[1], U1jM[2]),
                L1jM = b66M(O1jM.getFullYear(), O1jM.getMonth(), O1jM.getDate(), J1jM.getHours(), J1jM.getMinutes(), J1jM.getSeconds()),
                G1jM = u1jM.hasClass('mbsc-cal-day-sel');
            if (!t2jM && u1jM.hasClass('mbsc-cal-day-diff')) {
                return;
            }
            if (g3jM.trigger('onDayChange', j9HM(a2jM[x1jM], {
                    date: L1jM,
                    target: this,
                    selected: G1jM
                })) !== false) {
                g3jM.needsSlide = false;
                R2jM = true;
                g3jM.setDate(L1jM, j1jM, 0.2, !j1jM, true);
                if (F3jM.outerMonthChange) {
                    t4jM = true;
                    if (O1jM < F3jM.getDate(J3jM, U3jM - x3jM, 1)) {
                        Q2jM();
                    } else if (O1jM > F3jM.getDate(J3jM, U3jM - x3jM + u3jM, 0)) {
                        z2jM();
                    }
                    t4jM = false;
                }
                if (g3jM.live) {
                    g3jM.trigger('onSet', {
                        valueText: g3jM._value
                    });
                }
            }
        }

        function K2jM(d8jM, S1jM) {
            d8jM.attr('data-curr', S1jM);
            d8jM[0].style[R16M + 'Transform'] = 'translate3d(' + (Y4jM ? '0,' + S1jM + '%,' : S1jM + '%,' + '0,') + '0)';
        }

        function O2jM(M8jM) {
            if (g3jM.isVisible() && N4jM) {
                if (!g3jM.changing) {
                    Z2jM(J3jM, U3jM, M8jM);
                } else {
                    D2jM = M8jM;
                }
            }
        }

        function z2jM() {
            if (t4jM && F3jM.getDate(J3jM, U3jM + u3jM - x3jM, 1) <= p4jM) {
                y4jM(J3jM, ++U3jM, 'next', 1, false, true, z2jM);
            }
        }

        function Q2jM() {
            if (t4jM && F3jM.getDate(J3jM, U3jM - x3jM - 1, 1) >= D4jM) {
                y4jM(J3jM, --U3jM, 'prev', 1, false, true, Q2jM);
            }
        }

        function G2jM(Z8jM) {
            if (t4jM && F3jM.getDate(J3jM, U3jM, 1) <= F3jM.getDate(F3jM.getYear(p4jM) - 1, F3jM.getMonth(p4jM) - e4jM, 1)) {
                y4jM(++J3jM, U3jM, 'next', j3jM, true, true, function() {
                    G2jM(Z8jM);
                });
            } else if (t4jM && !Z8jM.hasClass('mbsc-fr-btn-d')) {
                y4jM(F3jM.getYear(p4jM), F3jM.getMonth(p4jM) - e4jM, 'next', j3jM, true, true);
            }
        }

        function H2jM(p8jM) {
            if (t4jM && F3jM.getDate(J3jM, U3jM, 1) >= F3jM.getDate(F3jM.getYear(D4jM) + 1, F3jM.getMonth(D4jM) + x3jM, 1)) {
                y4jM(--J3jM, U3jM, 'prev', j3jM, true, true, function() {
                    H2jM(p8jM);
                });
            } else if (t4jM && !p8jM.hasClass('mbsc-fr-btn-d')) {
                y4jM(F3jM.getYear(D4jM), F3jM.getMonth(D4jM) + x3jM, 'prev', j3jM, true, true);
            }
        }

        function O4jM(N8jM, D8jM) {
            if (!N8jM.hasClass('mbsc-cal-v')) {
                N8jM.addClass('mbsc-cal-v' + (D8jM ? '' : ' mbsc-cal-p-in')).removeClass('mbsc-cal-p-out mbsc-cal-h');
                g3jM.trigger('onSelectShow');
            }
        }

        function b4jM(t8jM, h8jM) {
            if (t8jM.hasClass('mbsc-cal-v')) {
                t8jM.removeClass('mbsc-cal-v mbsc-cal-p-in').addClass('mbsc-cal-h' + (h8jM ? '' : ' mbsc-cal-p-out'));
            }
        }

        function n2jM(q8jM, o8jM) {
            if ((o8jM || q8jM).hasClass('mbsc-cal-v')) {
                b4jM(q8jM);
            } else {
                O4jM(q8jM);
            }
        }

        function s2jM() {
            u9HM(this).removeClass('mbsc-cal-p-out mbsc-cal-p-in');
        }

        function J2jM(Y8jM) {
            return Y8jM[0].innerWidth || Y8jM.innerWidth();
        }
        var P4jM, I3jM, C4jM, k2jM, g4jM, O3jM, v2jM, Z4jM, i4jM, S3jM, d4jM, R2jM, N4jM, l4jM, u4jM, L4jM, F2jM, a4jM, T4jM, F4jM, V4jM, Q4jM, i2jM, j4jM, B4jM, G4jM, H4jM, N2jM, u2jM, w2jM, D4jM, p4jM, I4jM, S2jM, c4jM, J3jM, U3jM, c2jM, r2jM, I2jM, g2jM, A4jM, q4jM, s4jM, U2jM, j2jM, m4jM, E2jM, t4jM, u3jM, o4jM, e4jM, x3jM, D2jM, t2jM, M7jM, n4jM, v4jM, Y2jM, W2jM = this,
            w4jM = [],
            L3jM = [],
            k4jM = [],
            G3jM = {},
            a2jM = {},
            S4jM = function n8jM() {},
            d7jM = j9HM({}, g3jM.settings),
            F3jM = j9HM(g3jM.settings, Q16M, d7jM),
            X2jM = F3jM.weekDays == 'full' ? '' : F3jM.weekDays == 'min' ? 'Min' : 'Short',
            R4jM = F3jM.weekCounter,
            V2jM = F3jM.layout || (/top|bottom|inline/.test(F3jM.display) ? 'liquid' : ''),
            W4jM = V2jM == 'liquid' && F3jM.display !== 'bubble',
            l2jM = F3jM.display == 'center',
            E4jM = F3jM.rtl,
            f4jM = E4jM ? -1 : 1,
            b2jM = W4jM ? null : F3jM.calendarWidth,
            Y4jM = F3jM.calendarScroll == 'vertical',
            K4jM = F3jM.quickNav,
            j3jM = F3jM.preMonths,
            r4jM = F3jM.yearChange,
            o2jM = F3jM.controls.join(','),
            X4jM = (F3jM.tabs === true || F3jM.tabs !== false && W4jM) && F3jM.controls.length > 1,
            U4jM = !X4jM && F3jM.tabs === undefined && !W4jM && F3jM.controls.length > 1,
            p2jM = F3jM.yearSuffix || '',
            z4jM = F3jM.activeClass || '',
            h2jM = 'mbsc-cal-tab-sel ' + (F3jM.activeTabClass || ''),
            d2jM = F3jM.activeTabInnerClass || '',
            A2jM = 'mbsc-fr-btn-d ' + (F3jM.disabledClass || ''),
            J4jM = Y4jM ? 'Y' : 'X',
            h4jM = '',
            M4jM = '';
        if (o2jM.match(/calendar/)) {
            N4jM = true;
        } else {
            K4jM = false;
        }
        if (o2jM.match(/date/)) {
            G3jM.date = 1;
        }
        if (o2jM.match(/time/)) {
            G3jM.time = 1;
        }
        if (N4jM && G3jM.date) {
            X4jM = true;
            U4jM = false;
        }
        F3jM.layout = V2jM;
        F3jM.preset = (G3jM.date || N4jM ? 'date' : '') + (G3jM.time ? 'time' : '');
        if (F3jM.display == 'inline') {
            u9HM(this).closest('[data-role="page"]').on('pageshow', function() {
                g3jM.position();
            });
        }
        g3jM.changing = false;
        g3jM.needsSlide = true;
        g3jM.getDayProps = S4jM;
        g3jM.onGenMonth = S4jM;
        g3jM.prepareObj = C2jM;
        g3jM.refresh = function() {
            O2jM(false);
        };
        g3jM.redraw = function() {
            O2jM(true);
        };
        g3jM.navigate = function(m8jM, a8jM) {
            var C8jM, W8jM, y8jM = g3jM.isVisible();
            k4jM = [];
            if (a8jM && y8jM) {
                m2jM(m8jM, true);
            } else {
                C8jM = F3jM.getYear(m8jM);
                W8jM = F3jM.getMonth(m8jM);
                if (y8jM && (C8jM != J3jM || W8jM != U3jM)) {
                    s4jM = false;
                    g3jM.changing = false;
                    g3jM.trigger('onMonthChange', {
                        year: C8jM,
                        month: W8jM
                    });
                    P2jM(C8jM, W8jM);
                    Z2jM(C8jM, W8jM);
                    d4jM = L4jM;
                    V4jM.scroll(d4jM);
                    y2jM(m8jM.getFullYear(), m8jM.getMonth());
                }
                J3jM = C8jM;
                U3jM = W8jM;
            }
        };
        g3jM.showMonthView = function() {
            if (K4jM && !T4jM) {
                b4jM(M4jM, true);
                b4jM(h4jM, true);
                O4jM(a4jM, true);
                T4jM = true;
            }
        };
        g3jM.changeTab = function(E8jM) {
            if (!g3jM._isVisible || !G3jM[E8jM] || q4jM == E8jM) {
                return;
            }
            q4jM = E8jM;
            u9HM('.mbsc-cal-pnl', O3jM).removeClass('mbsc-cal-p-in').addClass('mbsc-cal-pnl-h');
            u9HM('.mbsc-cal-tab', O3jM).removeClass(h2jM).removeAttr('aria-selected').find('.mbsc-cal-tab-i').removeClass(d2jM);
            u9HM('.mbsc-cal-tab[data-control="' + E8jM + '"]', O3jM).addClass(h2jM).attr('aria-selected', 'true').find('.mbsc-cal-tab-i').addClass(d2jM);
            G3jM[q4jM].removeClass('mbsc-cal-pnl-h').addClass('mbsc-cal-p-in');
            if (q4jM == 'calendar') {
                P4jM = g3jM.getDate(true);
                if (P4jM.getFullYear() !== c4jM.getFullYear() || P4jM.getMonth() !== c4jM.getMonth() || P4jM.getDate() !== c4jM.getDate()) {
                    m2jM(P4jM);
                }
            }
            g3jM.showMonthView();
            g3jM.trigger('onTabChange', {
                tab: q4jM
            });
        };
        k2jM = r46M.datetime.call(this, g3jM);
        j4jM = (F3jM.dateWheels || F3jM.dateFormat).search(/m/i);
        G4jM = (F3jM.dateWheels || F3jM.dateFormat).search(/y/i);
        j9HM(k2jM, {
            ariaMessage: F3jM.calendarText,
            onMarkupReady: function P8jM(l8jM) {
                var V8jM, K8jM, z8jM = '';
                O3jM = u9HM(l8jM.target);
                v2jM = F3jM.display == 'inline' ? u9HM(this).is('div') ? u9HM(this) : u9HM(this).parent() : g3jM._window;
                c4jM = g3jM.getDate(true);
                if (!J3jM) {
                    J3jM = F3jM.getYear(c4jM);
                    U3jM = F3jM.getMonth(c4jM);
                }
                d4jM = 0;
                L4jM = 0;
                u4jM = true;
                s4jM = false;
                F4jM = F3jM.monthNames;
                q4jM = 'calendar';
                if (F3jM.min) {
                    D4jM = b66M(F3jM.min.getFullYear(), F3jM.min.getMonth(), 1);
                    I4jM = F3jM.min;
                }
                if (F3jM.max) {
                    p4jM = b66M(F3jM.max.getFullYear(), F3jM.max.getMonth(), 1);
                    S2jM = F3jM.max;
                }
                O3jM.addClass('mbsc-calendar');
                g4jM = u9HM('.mbsc-fr-popup', O3jM);
                A4jM = u9HM('.mbsc-fr-c', O3jM);
                if (G3jM.date) {
                    G3jM.date = u9HM('.mbsc-sc-whl-gr-c', O3jM).eq(0);
                } else if (N4jM) {
                    u9HM('.mbsc-sc-whl-gr-c', O3jM).eq(0).addClass('mbsc-cal-hdn');
                }
                if (G3jM.time) {
                    G3jM.time = u9HM('.mbsc-sc-whl-gr-c', O3jM).eq(1);
                }
                if (N4jM) {
                    u3jM = F3jM.months == 'auto' ? Math.max(1, Math.min(3, Math.floor((b2jM || J2jM(v2jM)) / 280))) : F3jM.months;
                    o4jM = u3jM + 2 * j3jM;
                    e4jM = Math.floor(u3jM / 2);
                    x3jM = Math.round(u3jM / 2) - 1;
                    t2jM = F3jM.showOuterDays === undefined ? u3jM < 2 : F3jM.showOuterDays;
                    Y4jM = Y4jM && u3jM < 2;
                    K8jM = '<div class="mbsc-cal-btnw"><div class="' + (E4jM ? 'mbsc-cal-next-m' : 'mbsc-cal-prev-m') + ' mbsc-cal-prev mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"><div role="button" tabindex="0" class="mbsc-cal-btn-txt ' + (F3jM.btnCalPrevClass || '') + '"' + ' aria-label="' + F3jM.prevMonthText + '"></div></div>';
                    for (I3jM = 0; I3jM < u3jM; ++I3jM) {
                        K8jM += '<div class="mbsc-cal-btnw-m" style="width: ' + 100 / u3jM + '%"><span role="button" class="mbsc-cal-month"></span></div>';
                    }
                    K8jM += '<div class="' + (E4jM ? 'mbsc-cal-prev-m' : 'mbsc-cal-next-m') + ' mbsc-cal-next mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"><div role="button" tabindex="0" class="mbsc-cal-btn-txt ' + (F3jM.btnCalNextClass || '') + '"' + ' aria-label="' + F3jM.nextMonthText + '"></div></div></div>';
                    if (r4jM) {
                        z8jM = '<div class="mbsc-cal-btnw"><div class="' + (E4jM ? 'mbsc-cal-next-y' : 'mbsc-cal-prev-y') + ' mbsc-cal-prev mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"><div role="button" tabindex="0" class="mbsc-cal-btn-txt ' + (F3jM.btnCalPrevClass || '') + '"' + ' aria-label="' + F3jM.prevYearText + '"></div></div>' + '<span role="button" class="mbsc-cal-year"></span>' + '<div class="' + (E4jM ? 'mbsc-cal-prev-y' : 'mbsc-cal-next-y') + ' mbsc-cal-next mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"><div role="button" tabindex="0" class="mbsc-cal-btn-txt ' + (F3jM.btnCalNextClass || '') + '"' + ' aria-label="' + F3jM.nextYearText + '"></div></div></div>';
                    }
                    if (K4jM) {
                        H4jM = F3jM.getYear(D4jM);
                        N2jM = F3jM.getYear(p4jM);
                        u2jM = F3jM.getMonth(D4jM);
                        w2jM = F3jM.getMonth(p4jM);
                        r2jM = Math.ceil((N2jM - H4jM + 1) / 12) + 2;
                        h4jM = x2jM('month', 36, 24, 0, '', F3jM.monthNames, F3jM.monthNamesShort);
                        M4jM = x2jM('year', r2jM * 12, N2jM - H4jM + 13, H4jM, p2jM);
                    }
                    l4jM = '<div class="mbsc-w-p mbsc-cal-c"><div class="mbsc-cal mbsc-cal-hl-now ' + (u3jM > 1 ? ' mbsc-cal-multi ' : '') + (R4jM ? ' mbsc-cal-weeks ' : '') + (Y4jM ? ' mbsc-cal-vertical' : '') + (t2jM ? '' : ' mbsc-cal-hide-diff ') + (F3jM.calendarClass || '') + '">' + '<div class="mbsc-cal-header"><div class="mbsc-cal-btnc ' + (r4jM ? 'mbsc-cal-btnc-ym' : 'mbsc-cal-btnc-m') + '">' + (G4jM < j4jM || u3jM > 1 ? z8jM + K8jM : K8jM + z8jM) + '</div></div><div class="mbsc-cal-body"><div class="mbsc-cal-m-c mbsc-cal-v"><div class="mbsc-cal-days-c">';
                    for (C4jM = 0; C4jM < u3jM; ++C4jM) {
                        l4jM += '<div aria-hidden="true" class="mbsc-cal-days" style="width: ' + 100 / u3jM + '%"><table cellpadding="0" cellspacing="0"><tr>';
                        for (I3jM = 0; I3jM < 7; I3jM++) {
                            l4jM += '<th>' + F3jM['dayNames' + X2jM][(I3jM + F3jM.firstDay) % 7] + '</th>';
                        }
                        l4jM += '</tr></table></div>';
                    }
                    l4jM += '</div>' + '<div class="mbsc-cal-week-nrs-c ' + (F3jM.weekNrClass || '') + '">' + '<div class="mbsc-cal-week-nrs"></div>' + '</div>' + '<div class="mbsc-cal-anim-c ' + (F3jM.calendarClass || '') + '">' + '<div class="mbsc-cal-anim">';
                    for (I3jM = 0; I3jM < u3jM + 2 * j3jM; I3jM++) {
                        l4jM += '<div class="mbsc-cal-slide" aria-hidden="true"></div>';
                    }
                    l4jM += '</div></div></div>' + h4jM + M4jM + '</div></div></div>';
                    G3jM.calendar = u9HM(l4jM);
                }
                u9HM.each(F3jM.controls, function(r8jM, A8jM) {
                    G3jM[A8jM] = u9HM('<div class="mbsc-cal-pnl" id="' + (W2jM.id + '_dw_pnl_' + r8jM) + '"></div>').append(u9HM('<div class="mbsc-cal-pnl-i"></div>').append(G3jM[A8jM])).appendTo(A4jM);
                });
                V8jM = '<div class="mbsc-cal-tabs"><ul role="tablist">';
                u9HM.each(F3jM.controls, function(b8jM, c8jM) {
                    if (G3jM[c8jM]) {
                        V8jM += '<li role="tab" aria-controls="' + (W2jM.id + '_dw_pnl_' + b8jM) + '" class="mbsc-cal-tab ' + (b8jM ? '' : h2jM) + '" data-control="' + c8jM + '"><a href="#" class="mbsc-fr-btn-e mbsc-fr-btn-nhl mbsc-cal-tab-i ' + (!b8jM ? d2jM : '') + '">' + F3jM[c8jM + 'Text'] + '</a></li>';
                    }
                });
                V8jM += '</ul></div>';
                A4jM.before(V8jM);
                Z4jM = u9HM('.mbsc-cal-anim-c', O3jM);
                i4jM = u9HM('.mbsc-cal-anim', Z4jM);
                F2jM = u9HM('.mbsc-cal-week-nrs', O3jM);
                if (N4jM) {
                    T4jM = true;
                    w4jM = u9HM('.mbsc-cal-slide', i4jM).each(function(f8jM, T8jM) {
                        L3jM.push(u9HM(T8jM));
                    });
                    w4jM.slice(j3jM, j3jM + u3jM).addClass('mbsc-cal-slide-a').removeAttr('aria-hidden');
                    for (I3jM = 0; I3jM < o4jM; I3jM++) {
                        K2jM(L3jM[I3jM], 100 * (I3jM - j3jM) * f4jM);
                    }
                    Z2jM(J3jM, U3jM);
                    V4jM = new Y46M.ScrollView(Z4jM[0], {
                        axis: J4jM,
                        easing: '',
                        contSize: 0,
                        snap: 1,
                        maxSnapScroll: j3jM,
                        moveElement: i4jM,
                        mousewheel: F3jM.mousewheel,
                        time: 200,
                        lock: true,
                        stopProp: false,
                        minScroll: -Infinity,
                        maxScroll: Infinity,
                        onAnimationEnd: function Q8jM(k8jM) {
                            var s8jM = Math.round((k8jM['pos' + J4jM] - d4jM) / S3jM) * f4jM;
                            if (s8jM) {
                                y4jM(J3jM, U3jM - s8jM, s8jM > 0 ? 'prev' : 'next', s8jM > 0 ? s8jM : -s8jM);
                            }
                        }
                    });
                }
                i2jM = u9HM('.mbsc-cal-month', O3jM);
                B4jM = u9HM('.mbsc-cal-year', O3jM);
                a4jM = u9HM('.mbsc-cal-m-c', O3jM);
                if (K4jM) {
                    a4jM.on(h46M, s2jM);
                    h4jM = u9HM('.mbsc-cal-month-c', O3jM).on(h46M, s2jM);
                    M4jM = u9HM('.mbsc-cal-year-c', O3jM).on(h46M, s2jM);
                    M7jM = u9HM('.mbsc-cal-sc-p', O3jM);
                    c2jM = {
                        axis: J4jM,
                        contSize: 0,
                        snap: 1,
                        maxSnapScroll: 1,
                        rtl: F3jM.rtl,
                        mousewheel: F3jM.mousewheel,
                        time: 200,
                        stopProp: false,
                        minScroll: -Infinity,
                        maxScroll: Infinity
                    };
                    n4jM = new Y46M.ScrollView(M4jM[0], c2jM);
                    Q4jM = new Y46M.ScrollView(h4jM[0], c2jM);
                }
                if (W4jM) {
                    O3jM.addClass('mbsc-cal-liq');
                } else {
                    u9HM('.mbsc-cal', O3jM).width(b2jM || 280 * u3jM);
                }
                if (F3jM.calendarHeight) {
                    u9HM('.mbsc-cal-anim-c', O3jM).height(F3jM.calendarHeight);
                }
                g3jM.tap(Z4jM, function(v8jM) {
                    var i8jM = u9HM(v8jM.target);
                    if (!s4jM && !V4jM.scrolled && F3jM.readonly !== true) {
                        i8jM = i8jM.closest('.mbsc-cal-day', this);
                        if (i8jM.hasClass('mbsc-cal-day-v')) {
                            Z7jM.call(i8jM[0]);
                        }
                    }
                });
                u9HM('.mbsc-cal-btn', O3jM).on('touchstart mousedown keydown', D7jM).on('touchmove', f2jM).on('touchend touchcancel keyup', T2jM);
                u9HM('.mbsc-cal-tab', O3jM).on('touchstart click', function(R8jM) {
                    if (i46M(R8jM, this)) {
                        g3jM.changeTab(u9HM(this).attr('data-control'));
                    }
                });
                if (K4jM) {
                    g3jM.tap(u9HM('.mbsc-cal-month', O3jM), function() {
                        if (!M4jM.hasClass('mbsc-cal-v')) {
                            n2jM(a4jM);
                            T4jM = a4jM.hasClass('mbsc-cal-v');
                        }
                        n2jM(h4jM);
                        b4jM(M4jM);
                    });
                    g3jM.tap(u9HM('.mbsc-cal-year', O3jM), function() {
                        if (!M4jM.hasClass('mbsc-cal-v')) {
                            n4jM.scroll(v4jM);
                        }
                        if (!h4jM.hasClass('mbsc-cal-v')) {
                            n2jM(a4jM);
                            T4jM = a4jM.hasClass('mbsc-cal-v');
                        }
                        n2jM(M4jM);
                        b4jM(h4jM);
                    });
                    g3jM.tap(u9HM('.mbsc-cal-month-s', O3jM), function() {
                        if (!Q4jM.scrolled && !u9HM(this).hasClass('mbsc-fr-btn-d')) {
                            g3jM.navigate(F3jM.getDate(J3jM, u9HM(this).attr('data-val'), 1));
                        }
                    });
                    g3jM.tap(u9HM('.mbsc-cal-year-s', O3jM), function() {
                        if (!n4jM.scrolled) {
                            P4jM = F3jM.getDate(J3jM, U3jM, 1);
                            P4jM = F3jM.getDate(u9HM(this).attr('data-val'), P4jM.getMonth(), 1);
                            g3jM.navigate(new Date(X66M.constrain(P4jM, D4jM, p4jM)));
                        }
                    });
                    g3jM.tap(M4jM, function() {
                        if (!n4jM.scrolled) {
                            b4jM(M4jM);
                            O4jM(a4jM);
                            T4jM = true;
                        }
                    });
                    g3jM.tap(h4jM, function() {
                        if (!Q4jM.scrolled) {
                            b4jM(h4jM);
                            O4jM(a4jM);
                            T4jM = true;
                        }
                    });
                }
            },
            onShow: function H8jM() {
                if (N4jM) {
                    P2jM(J3jM, U3jM);
                }
            },
            onPosition: function X8jM(j8jM) {
                var O8jM, I8jM, U8jM, g8jM, e8jM, w8jM, F8jM = 0,
                    B8jM = 0,
                    J8jM = 0,
                    u8jM = j8jM.windowHeight;
                if (W4jM) {
                    if (l2jM) {
                        Z4jM.height('');
                    }
                    A4jM.height('');
                    i4jM.width('');
                }
                if (S3jM) {
                    e8jM = S3jM;
                }
                if (N4jM) {
                    S3jM = Math.round(Math.round(Z4jM[0][Y4jM ? 'offsetHeight' : 'offsetWidth']) / u3jM);
                }
                if (S3jM) {
                    O3jM.removeClass('mbsc-cal-m mbsc-cal-l');
                    if (S3jM > 1024) {
                        O3jM.addClass('mbsc-cal-l');
                    } else if (S3jM > 640) {
                        O3jM.addClass('mbsc-cal-m');
                    }
                }
                if (X4jM && (u4jM || W4jM) || U4jM) {
                    u9HM('.mbsc-cal-pnl', O3jM).removeClass('mbsc-cal-pnl-h');
                    u9HM.each(G3jM, function(L8jM, x8jM) {
                        O8jM = x8jM[0].offsetWidth;
                        F8jM = Math.max(F8jM, O8jM);
                        B8jM = Math.max(B8jM, x8jM[0].offsetHeight);
                        J8jM += O8jM;
                    });
                    if (X4jM || U4jM && J8jM > J2jM(v2jM)) {
                        I8jM = true;
                        q4jM = u9HM('.mbsc-cal-tabs .mbsc-cal-tab-sel', O3jM).attr('data-control');
                        g4jM.addClass('mbsc-cal-tabbed');
                    } else {
                        q4jM = 'calendar';
                        F8jM = '';
                        B8jM = '';
                        g4jM.removeClass('mbsc-cal-tabbed');
                        A4jM.css({
                            width: '',
                            height: ''
                        });
                    }
                }
                if (W4jM && l2jM && N4jM) {
                    g3jM._isFullScreen = true;
                    if (I8jM) {
                        A4jM.height(G3jM.calendar[0].offsetHeight);
                    }
                    g8jM = g4jM[0].offsetHeight;
                    if (u8jM >= g8jM) {
                        Z4jM.height(u8jM - g8jM + Z4jM[0].offsetHeight);
                    }
                    B8jM = Math.max(B8jM, G3jM.calendar[0].offsetHeight);
                }
                if (I8jM) {
                    A4jM.css({
                        width: W4jM ? '' : F8jM,
                        height: B8jM
                    });
                    if (N4jM) {
                        S3jM = Math.round(Math.round(Z4jM[0][Y4jM ? 'offsetHeight' : 'offsetWidth']) / u3jM);
                    }
                }
                if (S3jM) {
                    i4jM[Y4jM ? 'height' : 'width'](S3jM);
                    if (S3jM !== e8jM) {
                        if (r4jM) {
                            F4jM = F3jM.maxMonthWidth > u9HM('.mbsc-cal-btnw-m', O3jM).width() ? F3jM.monthNamesShort : F3jM.monthNames;
                            for (I3jM = 0; I3jM < u3jM; ++I3jM) {
                                u9HM(i2jM[I3jM]).text(F4jM[F3jM.getMonth(F3jM.getDate(J3jM, U3jM - x3jM + I3jM, 1))]);
                            }
                        }
                        if (K4jM) {
                            w8jM = M4jM[0][Y4jM ? 'offsetHeight' : 'offsetWidth'];
                            j9HM(n4jM.settings, {
                                contSize: w8jM,
                                snap: w8jM,
                                minScroll: (2 - r2jM) * w8jM,
                                maxScroll: -w8jM
                            });
                            j9HM(Q4jM.settings, {
                                contSize: w8jM,
                                snap: w8jM,
                                minScroll: -w8jM,
                                maxScroll: -w8jM
                            });
                            n4jM.refresh();
                            Q4jM.refresh();
                            if (M4jM.hasClass('mbsc-cal-v')) {
                                n4jM.scroll(v4jM);
                            }
                        }
                        if (W4jM && !u4jM && e8jM) {
                            U8jM = d4jM / e8jM;
                            d4jM = U8jM * S3jM;
                            L4jM = d4jM;
                        }
                        y2jM(J3jM, U3jM);
                    }
                } else {
                    S3jM = e8jM;
                }
                if (I8jM) {
                    u9HM('.mbsc-cal-pnl', O3jM).addClass('mbsc-cal-pnl-h');
                    G3jM[q4jM].removeClass('mbsc-cal-pnl-h');
                }
                g3jM.trigger('onCalResize');
                u4jM = false;
            },
            onHide: function G8jM() {
                k4jM = [];
                L3jM = [];
                q4jM = null;
                J3jM = null;
                U3jM = null;
                s4jM = true;
                S3jM = 0;
                if (V4jM) {
                    V4jM.destroy();
                }
                if (K4jM && n4jM && Q4jM) {
                    n4jM.destroy();
                    Q4jM.destroy();
                }
            },
            onValidated: function S8jM(p0jM) {
                var M0jM, Z0jM, d0jM;
                Z0jM = g3jM.getDate(true);
                if (R2jM) {
                    M0jM = 'calendar';
                } else {
                    for (d0jM in g3jM.order) {
                        if (d0jM && g3jM.order[d0jM] === p0jM) {
                            M0jM = /[mdy]/.test(d0jM) ? 'date' : 'time';
                        }
                    }
                }
                g3jM.trigger('onSetDate', {
                    date: Z0jM,
                    control: M0jM
                });
                m2jM(Z0jM);
                R2jM = false;
            }
        });
        return k2jM;
    };
    var U66M = U9HM.util;
    var N46M = U66M.datetime;
    var L46M = N46M.adjustedDate;
    var d26M = U9HM.presets.scroller;
    var f16M = {};
    U9HM.presetShort('calendar');
    d26M.calendar = function(t0jM) {
        function A0jM(r0jM) {
            if (r0jM) {
                if (y0jM[r0jM]) {
                    return y0jM[r0jM];
                }
                var b0jM = u9HM('<div style="background-color:' + r0jM + ';"></div>').appendTo('body'),
                    f0jM = window.getComputedStyle ? getComputedStyle(b0jM[0]) : b0jM[0].style,
                    c0jM = f0jM.backgroundColor.replace(/rgb|rgba|\(|\)|\s/g, '').split(','),
                    Q0jM = c0jM[0] * 0.299 + c0jM[1] * 0.587 + c0jM[2] * 0.114,
                    T0jM = Q0jM > 130 ? '#000' : '#fff';
                b0jM.remove();
                y0jM[r0jM] = T0jM;
                return T0jM;
            }
        }

        function o0jM(s0jM) {
            return L46M(s0jM.getFullYear(), s0jM.getMonth(), s0jM.getDate());
        }

        function l0jM(k0jM) {
            D0jM = {};
            if (k0jM && k0jM.length) {
                for (q0jM = 0; q0jM < k0jM.length; q0jM++) {
                    D0jM[o0jM(k0jM[q0jM])] = k0jM[q0jM];
                }
            }
        }

        function n0jM() {
            t0jM.refresh();
        }
        var C0jM, W0jM, z0jM, q0jM, a0jM, V0jM, m0jM, y0jM = {},
            K0jM = j9HM({}, t0jM.settings),
            N0jM = j9HM(t0jM.settings, f16M, K0jM),
            P0jM = N0jM.activeClass || '',
            h0jM = N0jM.select == 'multiple' || N0jM.select > 1 || N0jM.selectType == 'week',
            E0jM = U66M.isNumeric(N0jM.select) ? N0jM.select : Infinity,
            Y0jM = !!N0jM.events,
            D0jM = {};
        m0jM = d26M.calbase.call(this, t0jM);
        C0jM = j9HM({}, m0jM);
        z0jM = N0jM.firstSelectDay === undefined ? N0jM.firstDay : N0jM.firstSelectDay;
        if (h0jM && N0jM.defaultValue && N0jM.defaultValue.length) {
            for (q0jM = 0; q0jM < N0jM.defaultValue.length; q0jM++) {
                D0jM[o0jM(N0jM.defaultValue[q0jM])] = N0jM.defaultValue[q0jM];
            }
        }
        t0jM.onGenMonth = function(i0jM, v0jM) {
            a0jM = t0jM.prepareObj(N0jM.events || N0jM.marked, i0jM, v0jM);
        };
        t0jM.getDayProps = function(F0jM) {
            var H0jM, I0jM = h0jM ? D0jM[F0jM] !== undefined : undefined,
                R0jM = a0jM[F0jM] ? a0jM[F0jM] : false,
                X0jM = R0jM && R0jM[0] && R0jM[0].text,
                e0jM = R0jM && R0jM[0] && R0jM[0].color,
                g0jM = Y0jM && X0jM ? A0jM(e0jM) : '',
                w0jM = '',
                B0jM = '';
            if (R0jM) {
                for (H0jM = 0; H0jM < R0jM.length; H0jM++) {
                    if (R0jM[H0jM].icon) {
                        w0jM += '<span class="mbsc-ic mbsc-ic-' + R0jM[H0jM].icon + '"' + (R0jM[H0jM].text ? '' : R0jM[H0jM].color ? ' style="color:' + R0jM[H0jM].color + ';"' : '') + '></span>\n';
                    }
                }
                B0jM = '<div class="mbsc-cal-day-m"><div class="mbsc-cal-day-m-t">';
                for (H0jM = 0; H0jM < R0jM.length; H0jM++) {
                    B0jM += '<div class="mbsc-cal-day-m-c"' + (R0jM[H0jM].color ? ' style="background:' + R0jM[H0jM].color + ';"' : '') + '></div>';
                }
                B0jM += '</div></div>';
            }
            return {
                marked: R0jM,
                selected: I0jM,
                cssClass: R0jM ? 'mbsc-cal-day-marked' : '',
                ariaLabel: Y0jM ? X0jM : '',
                markup: Y0jM && X0jM ? '<div class="mbsc-cal-day-txt-c"><div class="mbsc-cal-day-txt" title="' + u9HM('<div>' + X0jM + '</div>').text() + '"' + (e0jM ? ' style="background:' + e0jM + ';color:' + g0jM + ';text-shadow:none;"' : '') + '>' + w0jM + X0jM + '</div></div>' : Y0jM && w0jM ? '<div class="mbsc-cal-day-ic-c">' + w0jM + '</div>' : R0jM ? B0jM : ''
            };
        };
        t0jM.addValue = function(O0jM) {
            D0jM[o0jM(O0jM)] = O0jM;
            n0jM();
        };
        t0jM.removeValue = function(u0jM) {
            delete D0jM[o0jM(u0jM)];
            n0jM();
        };
        t0jM.setVal = function(J0jM, U0jM, j0jM, x0jM, L0jM) {
            if (h0jM) {
                l0jM(J0jM);
                J0jM = J0jM ? J0jM[0] : null;
            }
            t0jM._setVal(J0jM, U0jM, j0jM, x0jM, L0jM);
            n0jM();
        };
        t0jM.getVal = function(G0jM) {
            if (h0jM) {
                return U66M.objectToArray(D0jM);
            }
            return t0jM.getDate(G0jM);
        };
        j9HM(m0jM, {
            highlight: !h0jM,
            outerMonthChange: !h0jM,
            parseValue: function S0jM(d5jM) {
                var M5jM, Z5jM;
                if (h0jM && d5jM && typeof d5jM === 'string') {
                    D0jM = {};
                    d5jM = d5jM.split(',');
                    for (M5jM = 0; M5jM < d5jM.length; M5jM++) {
                        Z5jM = N46M.parseDate(t0jM.format, d5jM[M5jM].replace(/^\s+|\s+$/g, ''), N0jM);
                        D0jM[o0jM(Z5jM)] = Z5jM;
                    }
                    d5jM = d5jM[0];
                }
                if (h0jM && N0jM.defaultValue && N0jM.defaultValue.length) {
                    N0jM.defaultValue = N0jM.defaultValue[0];
                }
                return C0jM.parseValue.call(this, d5jM);
            },
            formatValue: function p5jM(t5jM) {
                var D5jM, N5jM = [];
                if (h0jM) {
                    for (D5jM in D0jM) {
                        N5jM.push(N46M.formatDate(t0jM.format, D0jM[D5jM], N0jM));
                    }
                    return N5jM.join(', ');
                }
                return C0jM.formatValue.call(this, t5jM);
            },
            onClear: function h5jM() {
                if (h0jM) {
                    D0jM = {};
                    t0jM.refresh();
                }
            },
            onBeforeShow: function q5jM() {
                if (N0jM.setOnDayTap === undefined && (!N0jM.buttons || !N0jM.buttons.length)) {
                    N0jM.setOnDayTap = true;
                }
                if (N0jM.setOnDayTap && N0jM.display != 'inline') {
                    N0jM.outerMonthChange = false;
                }
                if (N0jM.counter && h0jM) {
                    N0jM.headerText = function() {
                        var o5jM = 0,
                            Y5jM = N0jM.selectType == 'week' ? 7 : 1;
                        u9HM.each(D0jM, function() {
                            o5jM++;
                        });
                        o5jM = Math.round(o5jM / Y5jM);
                        return (o5jM > 1 ? N0jM.selectedPluralText || N0jM.selectedText : N0jM.selectedText).replace(/{count}/, o5jM);
                    };
                }
            },
            onMarkupReady: function n5jM(C5jM) {
                C0jM.onMarkupReady.call(this, C5jM);
                W0jM = u9HM(C5jM.target);
                if (h0jM) {
                    u9HM('.mbsc-fr-hdr', W0jM).attr('aria-live', 'off');
                    V0jM = j9HM({}, D0jM);
                }
                if (Y0jM) {
                    u9HM('.mbsc-cal', W0jM).addClass('mbsc-cal-ev');
                }
            },
            onDayChange: function W5jM(P5jM) {
                var K5jM = P5jM.date,
                    m5jM = o0jM(K5jM),
                    l5jM = u9HM(P5jM.target),
                    V5jM = P5jM.selected;
                if (h0jM) {
                    if (N0jM.selectType == 'week') {
                        var a5jM, E5jM, y5jM = m5jM.getDay() - z0jM;
                        y5jM = y5jM < 0 ? 7 + y5jM : y5jM;
                        if (N0jM.select != 'multiple') {
                            D0jM = {};
                        }
                        for (a5jM = 0; a5jM < 7; a5jM++) {
                            E5jM = L46M(m5jM.getFullYear(), m5jM.getMonth(), m5jM.getDate() - y5jM + a5jM);
                            if (V5jM) {
                                delete D0jM[E5jM];
                            } else if (U66M.objectToArray(D0jM).length / 7 < E0jM) {
                                D0jM[E5jM] = E5jM;
                            }
                        }
                        n0jM();
                    } else {
                        var z5jM = u9HM('.mbsc-cal .mbsc-cal-day[data-full="' + l5jM.attr('data-full') + '"]', W0jM);
                        if (V5jM) {
                            z5jM.removeClass('mbsc-cal-day-sel').removeAttr('aria-selected').find('.mbsc-cal-day-i').removeClass(P0jM);
                            delete D0jM[m5jM];
                        } else if (U66M.objectToArray(D0jM).length < E0jM) {
                            z5jM.addClass('mbsc-cal-day-sel').attr('aria-selected', 'true').find('.mbsc-cal-day-i').addClass(P0jM);
                            D0jM[m5jM] = m5jM;
                        }
                    }
                }
                if (N0jM.setOnDayTap && N0jM.select != 'multiple' && N0jM.display != 'inline') {
                    t0jM.needsSlide = false;
                    t0jM.setDate(K5jM);
                    t0jM.select();
                    return false;
                }
            },
            onCancel: function A5jM() {
                if (!t0jM.live && h0jM) {
                    D0jM = j9HM({}, V0jM);
                }
            }
        });
        return m0jM;
    };
    var T16M = this && this.__extends || function() {
        var r5jM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(b5jM, c5jM) {
            b5jM.__proto__ = c5jM;
        } || function(Q5jM, f5jM) {
            for (var T5jM in f5jM) {
                if (f5jM.hasOwnProperty(T5jM)) Q5jM[T5jM] = f5jM[T5jM];
            }
        };
        return function(k5jM, s5jM) {
            function i5jM() {
                this.constructor = k5jM;
            }
            r5jM(k5jM, s5jM);
            k5jM.prototype = s5jM === null ? Object.create(s5jM) : (i5jM.prototype = s5jM.prototype, new i5jM());
        };
    }();
    var m26M = function(R5jM) {
        function v5jM(X5jM, w5jM, B5jM, e5jM) {
            var H5jM = R5jM.call(this, X5jM, w5jM, B5jM, e5jM) || this;
            H5jM.isMulti = undefined;
            H5jM.onChangeEmitter = new J9HM.EventEmitter();
            return H5jM;
        }
        T16M(v5jM, R5jM);
        Object.defineProperty(v5jM.prototype, "value", {
            set: function F5jM(I5jM) {
                this.setNewValueProxy(I5jM);
            },
            enumerable: true,
            configurable: true
        });
        v5jM.prototype.setNewValue = function(g5jM) {
            if (this._instance) {
                var u5jM = void 0;
                if (this.isMulti) {
                    u5jM = !E36M(g5jM, this._instance.getVal());
                } else {
                    var O5jM = this._instance.getVal();
                    u5jM = !O5jM && g5jM || O5jM && !g5jM || O5jM && g5jM && O5jM.getTime() !== g5jM.getTime();
                }
                if (u5jM) {
                    this._instance.setVal(g5jM, true, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        v5jM.prototype.ngAfterViewInit = function() {
            R5jM.prototype.ngAfterViewInit.call(this);
            var J5jM = j9HM({
                preset: 'calendar'
            }, this.options, this.optionExtensions);
            this._instance = new N66M(this.element, J5jM);
            if (this.initialValue !== undefined && this.initialValue !== "") {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        v5jM.prototype.ngOnInit = function() {
            this.isMulti = this.options && (this.options.select && this.options.select !== 'single' || this.options.selectType == 'week');
        };
        v5jM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-calendar]',
                exportAs: 'mobiscroll'
            }]
        }];
        v5jM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        v5jM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-calendar']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-calendarChange']
            }]
        };
        return v5jM;
    }(S9HM);
    var p46M = U9HM.util;
    var P26M = function U5jM() {};
    var I66M = U9HM.classes;
    var x36M = function U9jM(K6dM, Q6dM, u6dM) {
        function r6dM(j6dM, U6dM, x6dM) {
            if (!x6dM) {
                j9jM._value = j9jM._hasValue ? j9jM._tempValue.slice(0) : null;
                for (var J6dM = 0; J6dM < x9jM.length; ++J6dM) {
                    if (x9jM[J6dM].tempChangedColor && j9jM._value && j9jM._value.indexOf(x9jM[J6dM].tempChangedColor) != -1) {
                        x9jM[J6dM].changedColor = x9jM[J6dM].tempChangedColor;
                    }
                    delete x9jM[J6dM].tempChangedColor;
                }
            }
            if (j6dM) {
                if (j9jM._isInput) {
                    h6dM.val(j9jM._hasValue ? j9jM._tempValue : '');
                }
                a6dM('onFill', {
                    valueText: j9jM._hasValue ? j9jM._tempValue : '',
                    change: U6dM
                });
                if (U6dM) {
                    p6dM = j9HM(true, {}, S9jM);
                    j9jM._preventChange = true;
                    h6dM.trigger('change');
                }
                H6dM(j9jM._value, true);
            }
        }

        function i6dM(G6dM, L6dM) {
            L6dM = L6dM !== undefined ? L6dM : b6dM(G6dM);
            return '<div class="mbsc-color-input-item" data-color="' + (L6dM !== undefined ? L6dM : G6dM) + '" style="background: ' + G6dM + ';">' + (M6dM ? '' : '<div class="mbsc-color-input-item-close mbsc-ic mbsc-ic-material-close"></div>') + '</div>';
        }

        function v6dM(S6dM) {
            R6dM[0].style.background = S6dM ? p46M.prefix + 'linear-gradient(left, ' + (L9jM.rtl ? '#000000' : '#FFFFFF') + ' 0%, ' + S6dM + ' 50%, ' + (L9jM.rtl ? '#FFFFFF' : '#000000') + ' 100%)' : '';
        }

        function b6dM(d3dM) {
            if (Object.keys(S9jM).length && !isNaN(d3dM)) {
                return d3dM;
            }
            for (var M3dM in x9jM) {
                if (d3dM == x9jM[M3dM].color || d3dM == x9jM[M3dM].changedColor) {
                    return M3dM;
                }
            }
        }

        function F6dM() {
            if (P6dM) {
                var Z3dM, p3dM = '';
                q6dM.empty();
                if (j9jM._value) {
                    if (M6dM) {
                        p3dM += i6dM(j9jM._value, G9jM);
                    } else {
                        for (Z3dM = 0; Z3dM < j9jM._value.length; ++Z3dM) {
                            p3dM += i6dM(j9jM._value[Z3dM], Object.keys(S9jM).length && S9jM[Z3dM].colorIndex ? S9jM[Z3dM].colorIndex : b6dM(j9jM._value[Z3dM]));
                        }
                    }
                    q6dM.append(p3dM);
                    j9jM.tap(u9HM('.mbsc-color-input-item', q6dM), function(N3dM) {
                        if (u9HM(N3dM.target).hasClass('mbsc-color-input-item-close')) {
                            var D3dM = u9HM(this).index();
                            N3dM.stopPropagation();
                            N3dM.preventDefault();
                            if (G9jM === undefined) {
                                G9jM = u9HM(N3dM.target).parent().attr('data-color');
                            }
                            if (Z6dM) {
                                d6dM = x9jM[G9jM].previewInd;
                                D6dM.eq(d6dM).parent().removeClass('mbsc-color-active');
                                p6dM[D3dM] = {};
                                S9jM[D3dM] = {};
                            }
                            j9jM._value.splice(D3dM, 1);
                            j9jM.setVal(j9jM._value, true, true);
                        } else if (Y6dM && L9jM.display !== 'inline') {
                            I6dM = true;
                            G9jM = u9HM(N3dM.target).attr('data-color');
                            if (isNaN(G9jM)) {
                                G9jM = b6dM(G9jM);
                            }
                            if (G9jM) {
                                x9jM[G9jM].selected = true;
                                d6dM = x9jM[G9jM].previewInd;
                                setTimeout(function() {
                                    W6dM.scroll(o6dM.eq(G9jM), 400);
                                    if (Z6dM) {
                                        C6dM.scroll(D6dM.eq(d6dM), 400);
                                    }
                                }, 200);
                            }
                        }
                    });
                }
            }
        }

        function V6dM(h3dM, o3dM) {
            var q3dM, t3dM = h3dM.match(/\d+/gmi);
            switch (true) {
                case h3dM.indexOf('rgb') > -1:
                    q3dM = Z46M({
                        r: t3dM[0],
                        g: t3dM[1],
                        b: t3dM[2]
                    });
                    break;
                case h3dM.indexOf('hsl') > -1:
                    q3dM = n86M({
                        h: t3dM[0],
                        s: t3dM[1],
                        l: t3dM[2]
                    });
                    break;
                case h3dM.indexOf('hsv') > -1:
                    q3dM = y16M({
                        h: t3dM[0],
                        s: t3dM[1],
                        v: t3dM[2]
                    });
                    break;
                case h3dM.indexOf('#') > -1:
                    q3dM = h3dM;
                    break;
            }
            return e6dM(q3dM, o3dM || L9jM.format);
        }

        function e6dM(Y3dM, n3dM) {
            switch (n3dM) {
                case 'rgb':
                    return d46M(Y3dM);
                case 'hsl':
                    return V16M(Y3dM);
                case 'hsv':
                    return m16M(Y3dM);
                default:
                    return Y3dM;
            }
        }

        function B6dM() {
            var C3dM;
            for (C3dM = 0; C3dM < L9jM.select; ++C3dM) {
                if (S9jM[C3dM].colorIndex === undefined) {
                    return C3dM;
                }
            }
        }

        function A6dM(W3dM, m3dM) {
            u9HM('.mbsc-color-active', m3dM).removeClass('mbsc-color-active');
            if (Y6dM) {
                W3dM.parent().addClass('mbsc-color-active');
                if (Z6dM && W3dM) {
                    if (d6dM !== undefined) {
                        D6dM.eq(d6dM).parent().addClass('mbsc-color-active');
                    }
                }
            }
        }

        function H6dM(E3dM, A3dM) {
            var y3dM, P3dM, a3dM = [],
                z3dM = 0,
                K3dM = u9HM.map(x9jM, function(r3dM) {
                    return r3dM.changedColor || r3dM.color;
                });
            if (M6dM) {
                E3dM = u9HM.isArray(E3dM) ? E3dM[0] : E3dM;
                P3dM = K3dM.indexOf(E3dM);
                if (P3dM > -1) {
                    a3dM.push(P3dM);
                }
                if (E3dM && !a3dM.length) {
                    var V3dM = +u9HM('.mbsc-color-input-item', q6dM).attr('data-color');
                    if (!isNaN(V3dM)) {
                        a3dM.push(V3dM);
                    }
                    G9jM = V3dM;
                }
            } else if (E3dM) {
                if (Z6dM && Y6dM) {
                    for (var l3dM in p6dM) {
                        if (p6dM[l3dM].colorIndex !== undefined) {
                            a3dM.push(+p6dM[l3dM].colorIndex);
                        }
                    }
                } else {
                    for (y3dM = 0; y3dM < E3dM.length; ++y3dM) {
                        P3dM = K3dM.indexOf(E3dM[y3dM]);
                        if (P3dM > -1) {
                            a3dM.push(P3dM);
                            K3dM[P3dM] = 'temp' + y3dM;
                        }
                    }
                }
            }
            for (y3dM = 0; y3dM < a3dM.length; ++y3dM) {
                z6dM(true, a3dM[y3dM], z3dM++, x9jM[a3dM[y3dM]].changedColor || x9jM[a3dM[y3dM]].color, true);
            }
            for (y3dM = 0; y3dM < x9jM.length; ++y3dM) {
                if (a3dM.indexOf(y3dM) == -1) {
                    z6dM(false, y3dM, undefined, x9jM[y3dM].changedColor || x9jM[y3dM].color, false);
                }
            }
            if (Z6dM) {
                for (y3dM = z3dM; y3dM < L9jM.select; ++y3dM) {
                    S9jM[y3dM] = {};
                    if (D6dM) {
                        D6dM.eq(y3dM).addClass('mbsc-color-preview-item-empty').css({
                            background: 'transparent'
                        });
                    }
                }
            }
            p6dM = j9HM(true, {}, S9jM);
            if (A3dM !== false) {
                F6dM();
            }
        }

        function z6dM(b3dM, c3dM, T3dM, f3dM, s3dM, k3dM) {
            if (Z6dM && s3dM) {
                S9jM[T3dM].colorIndex = b3dM ? c3dM : undefined;
                S9jM[T3dM].color = b3dM ? f3dM : undefined;
                if (D6dM) {
                    var Q3dM = D6dM.eq(T3dM);
                    Q3dM.removeClass('mbsc-color-preview-item-empty').css({
                        background: b3dM ? f3dM : 'transparent'
                    });
                    if (!b3dM) {
                        Q3dM.addClass('mbsc-color-preview-item-empty').parent().removeClass('mbsc-color-active');
                    }
                }
            }
            if (k3dM) {
                if (b3dM) {
                    j9jM._tempValue.splice(T3dM, 0, f3dM);
                } else {
                    j9jM._tempValue.splice(j9jM._tempValue.indexOf(f3dM), 1);
                }
            }
            if (o6dM) {
                if (b3dM) {
                    o6dM.eq(c3dM).addClass('mbsc-color-selected');
                } else {
                    o6dM.eq(c3dM).removeClass('mbsc-color-selected').parent().removeClass('mbsc-color-active');
                }
            }
            x9jM[c3dM].previewInd = b3dM ? T3dM : undefined;
            x9jM[c3dM].selected = b3dM;
        }

        function c6dM(i3dM, v3dM) {
            if (i3dM !== undefined && (M6dM || x9jM[i3dM].selected)) {
                G9jM = i3dM;
                t6dM = x9jM[i3dM].changedColor || x9jM[i3dM].color;
                N6dM = o6dM.eq(i3dM);
                if (Y6dM) {
                    A6dM(o6dM.eq(i3dM), v3dM || '');
                    y6dM = V6dM(x9jM[i3dM].color, 'hsl');
                    y6dM.l = V6dM(t6dM, 'hsl').l;
                    v6dM(x9jM[i3dM].color);
                    E6dM.setVal(100 - y6dM.l, false, false);
                }
            } else if (Y6dM) {
                v6dM();
            }
        }

        function O6dM() {
            var R3dM, H3dM = [];
            for (R3dM = 0; R3dM < x9jM.length; ++R3dM) {
                if (x9jM[R3dM].selected) {
                    H3dM.push(x9jM[R3dM]);
                }
            }
            return H3dM;
        }

        function s6dM(w3dM, B3dM) {
            var X3dM = u9HM(w3dM.target).index();
            G9jM = S9jM[X3dM].colorIndex;
            N6dM = o6dM.eq(G9jM);
            d6dM = X3dM;
            c6dM(G9jM, B3dM);
            W6dM.scroll(N6dM, 250);
            a6dM('onPreviewItemTap', {
                target: w3dM.target,
                value: S9jM[X3dM].color,
                index: X3dM
            });
        }

        function k6dM(g3dM, e3dM) {
            var F3dM = false,
                I3dM = u9HM('.mbsc-color-selected', e3dM);
            N6dM = u9HM(g3dM.target);
            if (N6dM.hasClass('mbsc-color-clear-item')) {
                t6dM = '';
                j9jM.clear();
                return;
            }
            if ((M6dM || X6dM > +I3dM.length || N6dM.hasClass('mbsc-color-selected'))) {
                G9jM = N6dM.attr('data-index');
                if (Z6dM) {
                    d6dM = x9jM[G9jM].previewInd !== undefined ? x9jM[G9jM].previewInd : B6dM();
                    F3dM = Y6dM && N6dM.hasClass('mbsc-color-selected') && !N6dM.parent().hasClass('mbsc-color-active');
                    if (D6dM.length > 6) {
                        C6dM.scroll(D6dM.eq(d6dM));
                    }
                }
                t6dM = x9jM[G9jM].changedColor || x9jM[G9jM].color;
                if (M6dM) {
                    I3dM.removeClass('mbsc-color-selected');
                    j9jM._tempValue = t6dM;
                    if (t6dM) {
                        N6dM.toggleClass('mbsc-color-selected');
                    }
                    A6dM(N6dM, e3dM);
                } else {
                    A6dM(N6dM, e3dM);
                    if (!F3dM) {
                        z6dM(!x9jM[G9jM].selected, G9jM, d6dM, t6dM, true, true);
                    }
                }
                c6dM(G9jM, e3dM);
                if (j9jM.live) {
                    j9jM._fillValue();
                    a6dM('onSet', {
                        value: j9jM._value
                    });
                }
                a6dM('onItemTap', {
                    target: g3dM.target,
                    value: t6dM,
                    selected: x9jM[G9jM].selected,
                    index: G9jM
                });
            }
        }
        var L9jM, w6dM, x9jM, g6dM, a6dM, W6dM, C6dM, m6dM, t6dM, y6dM, I6dM, n6dM, Z6dM, R6dM, Y6dM, f6dM, E6dM, G9jM, P6dM, M6dM, X6dM, T6dM, q6dM, o6dM, D6dM, N6dM, l6dM, j9jM = this,
            h6dM = u9HM(K6dM),
            d6dM = 0,
            p6dM = {},
            S9jM = {};
        I66M.Frame.call(this, K6dM, Q6dM, true);
        j9jM.setVal = j9jM._setVal = function(O3dM, u3dM, J3dM, U3dM) {
            j9jM._hasValue = O3dM !== null && O3dM !== undefined;
            j9jM._tempValue = M6dM ? u9HM.isArray(O3dM) ? O3dM[0] : O3dM : u9HM.isArray(O3dM) ? O3dM : [O3dM];
            r6dM(u3dM, J3dM === undefined ? u3dM : J3dM, U3dM);
        };
        j9jM.getVal = j9jM._getVal = function(j3dM) {
            return j9jM._hasValue || j3dM ? T6dM ? O6dM() : j9jM[j3dM ? '_tempValue' : '_value'] : null;
        };
        j9jM._readValue = function() {
            var x3dM = h6dM.val() || '';
            j9jM._hasValue = false;
            if (x3dM.length !== 0 && x3dM !== '') {
                j9jM._hasValue = true;
            }
            if (j9jM._hasValue) {
                j9jM._tempValue = M6dM ? x3dM : L9jM.format == 'hex' ? x3dM.split(',') : x3dM.match(/[a-z]{3}\((\d+\.?\d{0,}?),\s*([\d.]+)%{0,},\s*([\d.]+)%{0,}\)/gmi);
                r6dM(true);
            } else {
                j9jM._tempValue = [];
            }
            H6dM(j9jM._tempValue, j9jM._hasValue);
        };
        j9jM._fillValue = function() {
            j9jM._hasValue = true;
            r6dM(true, true);
        };
        j9jM._generateContent = function() {
            var L3dM, G3dM, M4dM, S3dM = m6dM ? 1 : 0;
            f6dM = n6dM ? Math.ceil((x9jM.length + S3dM) / L9jM.rows) : L9jM.rows;
            G3dM = '<div class="mbsc-color-scroll-cont mbsc-w-p ' + (n6dM ? '' : 'mbsc-color-vertical') + '"><div class="mbsc-color-cont">' + (n6dM ? '<div class="mbsc-color-row">' : '');
            for (L3dM = 0; L3dM < x9jM.length; ++L3dM) {
                M4dM = x9jM[L3dM].changedColor || x9jM[L3dM].color;
                if (m6dM && L3dM === 0) {
                    G3dM += '<div class="mbsc-color-item-c"><div tabindex="0" class="mbsc-color-clear-item mbsc-btn-e mbsc-color-selected"><div class="mbsc-color-clear-cross"></div></div></div>';
                }
                if (L3dM !== 0 && (L3dM + S3dM) % f6dM === 0) {
                    G3dM += n6dM ? '</div><div class="mbsc-color-row">' : '';
                }
                G3dM += '<div class="mbsc-color-item-c"><div tabindex="0" data-index="' + L3dM + '" class="mbsc-color-item mbsc-btn-e mbsc-ic mbsc-ic-material-check mbsc-color-btn-e ' + (x9jM[L3dM].selected ? 'mbsc-color-selected' : '') + '"  style="background:' + M4dM + '"></div></div>';
            }
            G3dM += '</div></div>' + (n6dM ? '</div>' : '');
            if (Y6dM) {
                G3dM += '<div class="mbsc-color-slider-cont"><input class="mbsc-color-slider" type="range" data-highlight="false" value="50" min="0" max="100"/></div>';
            }
            if (Z6dM) {
                G3dM += '<div class="mbsc-color-preview-cont"><div class="mbsc-color-refine-preview">';
                for (var d4dM in p6dM) {
                    G3dM += '<div class="mbsc-color-preview-item-c mbsc-btn-e mbsc-color-btn-e" tabindex="0"><div class="mbsc-color-preview-item ' + (p6dM[d4dM].color ? '' : 'mbsc-color-preview-item-empty') + '" style="background: ' + (p6dM[d4dM].color || 'initial') + ';"></div></div>';
                }
                G3dM += '</div></div>';
            }
            return G3dM;
        };
        j9jM._position = function(N4dM) {
            var Z4dM, p4dM;
            if (!n6dM) {
                Z4dM = N4dM.find('.mbsc-color-cont');
                p4dM = Math.ceil(Z4dM.find('.mbsc-color-item-c')[0].offsetWidth);
                Z4dM.width(Math.min(Math.floor(N4dM.find('.mbsc-fr-c').width() / p4dM), Math.round(x9jM.length / L9jM.rows)) * p4dM + 1);
            }
            if (W6dM) {
                W6dM.refresh();
            }
            if (C6dM) {
                C6dM.refresh();
            }
        };
        j9jM._markupInserted = function(D4dM) {
            if (!n6dM) {
                D4dM.find('.mbsc-color-scroll-cont').css('max-height', D4dM.find('.mbsc-color-item-c')[0].offsetHeight * L9jM.rows);
            }
            W6dM = new I66M.ScrollView(D4dM.find('.mbsc-color-scroll-cont')[0], {
                axis: n6dM ? 'X' : 'Y',
                rtl: L9jM.rtl,
                elastic: 60,
                stopProp: false,
                mousewheel: L9jM.mousewheel,
                onBtnTap: function t4dM(h4dM) {
                    k6dM(h4dM, D4dM);
                }
            });
        };
        j9jM._attachEvents = function(q4dM) {
            var o4dM;
            o6dM = u9HM('.mbsc-color-item', q4dM);
            q4dM.on('keydown', '.mbsc-color-btn-e', function(Y4dM) {
                Y4dM.stopPropagation();
                if (Y4dM.keyCode == 32) {
                    if (Y4dM.target.classList.contains('mbsc-color-item')) {
                        k6dM(Y4dM, q4dM);
                    } else {
                        s6dM(Y4dM, q4dM);
                    }
                }
            });
            if (Z6dM) {
                D6dM = u9HM('.mbsc-color-preview-item', q4dM);
            }
            if (Y6dM) {
                q4dM.addClass('mbsc-color-refine');
                l6dM = u9HM('.mbsc-color-slider', q4dM);
                E6dM = new I66M.Slider(l6dM[0], {
                    theme: L9jM.theme,
                    rtl: L9jM.rtl
                });
                R6dM = q4dM.find('.mbsc-progress-track');
                if (G9jM && j9jM._value) {
                    c6dM(G9jM, q4dM);
                }
                l6dM.on('change', function() {
                    if (G9jM !== undefined && (M6dM || x9jM[G9jM].selected)) {
                        y6dM.l = 100 - this.value;
                        o4dM = V6dM(y6dM.toString()).toString();
                        if (M6dM) {
                            j9jM._tempValue = o4dM;
                        } else {
                            j9jM._tempValue[d6dM !== undefined ? d6dM : j9jM._tempValue.length] = o4dM;
                        }
                        x9jM[G9jM].tempChangedColor = o4dM;
                        o6dM.eq(G9jM).css('background', o4dM);
                        if (Z6dM) {
                            S9jM[d6dM].color = o4dM;
                            D6dM.eq(d6dM).removeClass('mbsc-color-preview-item-empty').css({
                                'background': o4dM
                            });
                        }
                        if (j9jM.live) {
                            p46M.throttle(j9jM._fillValue());
                        }
                    }
                });
            }
            if (Z6dM) {
                C6dM = new I66M.ScrollView(q4dM.find('.mbsc-color-preview-cont')[0], {
                    axis: 'X',
                    rtl: L9jM.rtl,
                    mousewheel: L9jM.mousewheel,
                    onBtnTap: function n4dM(C4dM) {
                        s6dM(C4dM, q4dM);
                    }
                });
            }
        };
        j9jM._detachEvents = function() {
            W6dM.destroy();
            if (E6dM) {
                E6dM.destroy();
            }
            if (C6dM) {
                C6dM.destroy();
            }
        };
        j9jM.__processSettings = function() {
            var W4dM, m4dM;
            L9jM = j9jM.settings;
            g6dM = L9jM.format;
            a6dM = j9jM.trigger;
            n6dM = L9jM.navigation == 'horizontal';
            j9jM._value = [];
            j9jM._tempValue = [];
            M6dM = L9jM.select == 'single';
            m6dM = L9jM.clear !== undefined ? L9jM.clear : M6dM;
            m4dM = L9jM.data || [];
            if (!m4dM.length) {
                switch (L9jM.format) {
                    case 'rgb':
                        m4dM = ["rgb(255,235,60)", "rgb(255,153,0)", "rgb(244,68,55)", "rgb(234,30,99)", "rgb(156,38,176)", "rgb(104,58,183)", "rgb(63,81,181)", "rgb(33,150,243)", "rgb(0,151,136)", "rgb(75,175,79)", "rgb(126,93,78)", "rgb(158,158,158)"];
                        if (m6dM) {
                            m4dM.splice(10, 0, 'rgb(83, 71, 65)');
                        }
                        break;
                    case 'hsl':
                        m4dM = ["hsl(54,100%,62%)", "hsl(36,100%,50%)", "hsl(4,90%,59%)", "hsl(340,83%,52%)", "hsl(291,64%,42%)", "hsl(262,52%,47%)", "hsl(231,48%,48%)", "hsl(207,90%,54%)", "hsl(174,100%,30%)", "hsl(122,40%,49%)", "hsl(19,24%,40%)", "hsl(0,0%,62%)"];
                        if (m6dM) {
                            m4dM.splice(10, 0, 'hsl(20, 12%, 29%)');
                        }
                        break;
                    default:
                        m4dM = ['#ffeb3c', '#ff9900', '#f44437', '#ea1e63', '#9c26b0', '#683ab7', '#3f51b5', '#2196f3', '#009788', '#4baf4f', '#7e5d4e', '#9e9e9e'];
                        if (m6dM) {
                            m4dM.splice(10, 0, '#534741');
                        }
                }
            }
            Y6dM = L9jM.mode == 'refine';
            Z6dM = !isNaN(L9jM.select);
            X6dM = isNaN(L9jM.select) ? M6dM ? 2 : m4dM.length : L9jM.select;
            T6dM = u9HM.isPlainObject(m4dM[0]);
            if (Z6dM && !Object.keys(p6dM).length) {
                for (W4dM = 0; W4dM < L9jM.select; ++W4dM) {
                    p6dM[W4dM] = {};
                    S9jM[W4dM] = {};
                }
            }
            if (!x9jM) {
                x9jM = m4dM.slice(0);
                for (W4dM = 0; W4dM < x9jM.length; ++W4dM) {
                    if (!u9HM.isPlainObject(m4dM[W4dM])) {
                        m4dM[W4dM] = m4dM[W4dM].toLowerCase();
                        x9jM[W4dM] = {
                            key: W4dM,
                            name: m4dM[W4dM],
                            color: m4dM[W4dM]
                        };
                    } else {
                        x9jM[W4dM].color = m4dM[W4dM].color;
                    }
                }
            }
            w6dM = L9jM.defaultValue || x9jM[0].color;
            t6dM = w6dM;
            y6dM = V6dM(t6dM, 'hsl');
            P6dM = L9jM.enhance && h6dM.is('input');
            if (P6dM) {
                if (h6dM.hasClass('mbsc-color-input-hdn')) {
                    q6dM = h6dM.prev();
                } else {
                    q6dM = u9HM('<div ' + (K6dM.placeholder ? 'data-placeholder="' + K6dM.placeholder + '"' : '') + ' class="mbsc-control mbsc-color-input ' + (L9jM.inputClass || '') + '" readonly ></div>');
                    q6dM.insertBefore(h6dM);
                    h6dM.addClass('mbsc-color-input-hdn').attr('tabindex', -1);
                }
                L9jM.anchor = q6dM;
                j9jM.attachShow(q6dM);
            }
        };
        j9jM.__init = function() {
            L9jM.cssClass = (L9jM.cssClass || '') + ' mbsc-color';
        };
        j9jM.__destroy = function() {
            if (P6dM) {
                h6dM.removeClass('mbsc-color-input-hdn');
                q6dM.remove();
            }
        };
        if (!u6dM) {
            j9jM.init(Q6dM);
        }
    };
    x36M.prototype = {
        _hasDef: true,
        _hasTheme: true,
        _hasLang: true,
        _class: 'color',
        _defaults: j9HM({}, I66M.Frame.prototype._defaults, {
            headerText: false,
            validate: P26M,
            parseValue: P26M,
            enhance: true,
            rows: 2,
            select: 'single',
            format: 'hex',
            navigation: 'horizontal'
        })
    };
    U9HM.classes.Color = x36M;
    U9HM.themes.color = U9HM.themes.frame;
    U9HM.presetShort('color', 'Color', false);
    p46M.color = {
        hsv2hex: y16M,
        hsv2rgb: r16M,
        rgb2hsv: A16M,
        rgb2hex: Z46M,
        rgb2hsl: l76M,
        hex2rgb: d46M,
        hex2hsv: m16M,
        hex2hsl: V16M
    };
    var C16M = this && this.__extends || function() {
        var y4dM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(a4dM, E4dM) {
            a4dM.__proto__ = E4dM;
        } || function(V4dM, K4dM) {
            for (var P4dM in K4dM) {
                if (K4dM.hasOwnProperty(P4dM)) V4dM[P4dM] = K4dM[P4dM];
            }
        };
        return function(l4dM, z4dM) {
            function A4dM() {
                this.constructor = l4dM;
            }
            y4dM(l4dM, z4dM);
            l4dM.prototype = z4dM === null ? Object.create(z4dM) : (A4dM.prototype = z4dM.prototype, new A4dM());
        };
    }();

    var X26M = function(b4dM) {
        function r4dM(T4dM, f4dM, Q4dM, s4dM) {
            var c4dM = b4dM.call(this, T4dM, f4dM, Q4dM, s4dM) || this;
            c4dM.onChangeEmitter = new J9HM.EventEmitter();
            return c4dM;
        }
        C16M(r4dM, b4dM);
        Object.defineProperty(r4dM.prototype, "value", {
            set: function k4dM(i4dM) {
                this.setNewValueProxy(i4dM);
            },
            enumerable: true,
            configurable: true
        });
        r4dM.prototype.refreshData = function(v4dM) {
            this._instance.option('data', v4dM);
        };
        r4dM.prototype.ngAfterViewInit = function() {
            b4dM.prototype.ngAfterViewInit.call(this);
            var R4dM = j9HM({}, this.options, {
                data: this.data
            }, this.optionExtensions);
            this._instance = new x36M(this.element, R4dM);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        r4dM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-color]',
                exportAs: 'mobiscroll'
            }]
        }];
        r4dM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        r4dM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-color']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-colorChange']
            }]
        };
        return r4dM;
    }(P36M);
    ['date', 'time', 'datetime'].forEach(function(H4dM) {
        U9HM.presetShort(H4dM);
    });
    var b36M = this && this.__extends || function() {
        var X4dM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(w4dM, B4dM) {
            w4dM.__proto__ = B4dM;
        } || function(I4dM, F4dM) {
            for (var e4dM in F4dM) {
                if (F4dM.hasOwnProperty(e4dM)) I4dM[e4dM] = F4dM[e4dM];
            }
        };
        return function(O4dM, g4dM) {
            function u4dM() {
                this.constructor = O4dM;
            }
            X4dM(O4dM, g4dM);
            O4dM.prototype = g4dM === null ? Object.create(g4dM) : (u4dM.prototype = g4dM.prototype, new u4dM());
        };
    }();
    var c36M = function(U4dM) {
        function J4dM(x4dM, L4dM, G4dM, S4dM) {
            var j4dM = U4dM.call(this, x4dM, L4dM, G4dM, S4dM) || this;
            j4dM.preset = 'date';
            j4dM.onChangeEmitter = new J9HM.EventEmitter();
            return j4dM;
        }
        b36M(J4dM, U4dM);
        Object.defineProperty(J4dM.prototype, "value", {
            set: function d2dM(M2dM) {
                this.setNewValueProxy(M2dM);
            },
            enumerable: true,
            configurable: true
        });
        J4dM.prototype.setNewValue = function(Z2dM) {
            if (this._instance) {
                var p2dM = this._instance.getVal();
                if (!p2dM && Z2dM || p2dM && !Z2dM || p2dM && Z2dM && p2dM.getTime() !== Z2dM.getTime()) {
                    this._instance.setVal(Z2dM, true, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        J4dM.prototype.ngAfterViewInit = function() {
            U4dM.prototype.ngAfterViewInit.call(this);
            var N2dM = j9HM({
                preset: this.preset
            }, this.options, this.optionExtensions);
            this._instance = new N66M(this.element, N2dM);
            if (this.initialValue !== undefined && this.initialValue !== "") {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        J4dM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-date']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-dateChange']
            }]
        };
        return J4dM;
    }(S9HM);
    var j26M = function(t2dM) {
        function D2dM(q2dM, o2dM, Y2dM, n2dM) {
            var h2dM = t2dM.call(this, q2dM, o2dM, Y2dM, n2dM) || this;
            h2dM.preset = 'date';
            return h2dM;
        }
        b36M(D2dM, t2dM);
        D2dM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-date]',
                exportAs: 'mobiscroll'
            }]
        }];
        D2dM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        return D2dM;
    }(c36M);
    var M76M = function(W2dM) {
        function C2dM(y2dM, a2dM, E2dM, P2dM) {
            var m2dM = W2dM.call(this, y2dM, a2dM, E2dM, P2dM) || this;
            m2dM.onChangeEmitter = new J9HM.EventEmitter();
            m2dM.preset = 'time';
            return m2dM;
        }
        b36M(C2dM, W2dM);
        Object.defineProperty(C2dM.prototype, "value", {
            set: function K2dM(V2dM) {
                this.setNewValueProxy(V2dM);
            },
            enumerable: true,
            configurable: true
        });
        C2dM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-time]',
                exportAs: 'mobiscroll'
            }]
        }];
        C2dM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        C2dM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-time']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-timeChange']
            }]
        };
        return C2dM;
    }(c36M);
    var h76M = function(l2dM) {
        function z2dM(r2dM, b2dM, c2dM, T2dM) {
            var A2dM = l2dM.call(this, r2dM, b2dM, c2dM, T2dM) || this;
            A2dM.onChangeEmitter = new J9HM.EventEmitter();
            A2dM.preset = 'datetime';
            return A2dM;
        }
        b36M(z2dM, l2dM);
        Object.defineProperty(z2dM.prototype, "value", {
            set: function f2dM(Q2dM) {
                this.setNewValueProxy(Q2dM);
            },
            enumerable: true,
            configurable: true
        });
        z2dM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-datetime]',
                exportAs: 'mobiscroll'
            }]
        }];
        z2dM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        z2dM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-datetime']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-datetimeChange']
            }]
        };
        return z2dM;
    }(c36M);
    var n16M = U9HM.util;
    var T36M = n16M.datetime;
    var o16M = T36M.adjustedDate;
    var a76M = U9HM.presets.scroller;
    var h16M = {
        labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs'],
        eventText: 'event',
        eventsText: 'events'
    };
    U9HM.presetShort('eventcalendar');
    a76M.eventcalendar = function(s2dM) {
        function N7dM(q7dM) {
            if (q7dM) {
                if (I2dM[q7dM]) {
                    return I2dM[q7dM];
                }
                var o7dM = u9HM('<div style="background-color:' + q7dM + ';"></div>').appendTo('body'),
                    C7dM = window.getComputedStyle ? getComputedStyle(o7dM[0]) : o7dM[0].style,
                    Y7dM = C7dM.backgroundColor.replace(/rgb|rgba|\(|\)|\s/g, '').split(','),
                    W7dM = Y7dM[0] * 0.299 + Y7dM[1] * 0.587 + Y7dM[2] * 0.114,
                    n7dM = W7dM > 130 ? '#000' : '#fff';
                o7dM.remove();
                I2dM[q7dM] = n7dM;
                return n7dM;
            }
        }

        function D7dM(V7dM) {
            var m7dM = k2dM.labelsShort,
                a7dM = Math.abs(V7dM) / 1000,
                E7dM = a7dM / 60,
                P7dM = E7dM / 60,
                y7dM = P7dM / 24,
                K7dM = y7dM / 365;
            return a7dM < 45 && Math.round(a7dM) + ' ' + m7dM[5].toLowerCase() || E7dM < 45 && Math.round(E7dM) + ' ' + m7dM[4].toLowerCase() || P7dM < 24 && Math.round(P7dM) + ' ' + m7dM[3].toLowerCase() || y7dM < 30 && Math.round(y7dM) + ' ' + m7dM[2].toLowerCase() || y7dM < 365 && Math.round(y7dM / 30) + ' ' + m7dM[1].toLowerCase() || Math.round(K7dM) + ' ' + m7dM[0].toLowerCase();
        }

        function Z7dM(z7dM) {
            return z7dM.sort(function(l7dM, A7dM) {
                var r7dM = l7dM.d || l7dM.start,
                    b7dM = A7dM.d || A7dM.start,
                    c7dM = !r7dM.getTime ? 0 : l7dM.start && l7dM.end && l7dM.start.toDateString() !== l7dM.end.toDateString() ? 1 : r7dM.getTime(),
                    T7dM = !b7dM.getTime ? 0 : A7dM.start && A7dM.end && A7dM.start.toDateString() !== A7dM.end.toDateString() ? 1 : b7dM.getTime();
                return c7dM - T7dM;
            });
        }

        function M7dM(f7dM) {
            var k7dM, i7dM = u9HM('.mbsc-cal-c', X2dM)[0].offsetHeight,
                v7dM = f7dM[0].offsetHeight,
                R7dM = f7dM[0].offsetWidth,
                s7dM = f7dM.offset().top - u9HM('.mbsc-cal-c', X2dM).offset().top,
                Q7dM = f7dM.closest('.mbsc-cal-row').index() < 2;
            k7dM = i2dM.addClass('mbsc-cal-events-t').css({
                top: Q7dM ? s7dM + v7dM : '0',
                bottom: Q7dM ? '0' : i7dM - s7dM
            }).addClass('mbsc-cal-events-v').height();
            i2dM.css(Q7dM ? 'bottom' : 'top', 'auto').removeClass('mbsc-cal-events-t');
            O2dM.css('max-height', k7dM);
            H2dM.refresh();
            H2dM.scroll(0);
            if (Q7dM) {
                i2dM.addClass('mbsc-cal-events-b');
            } else {
                i2dM.removeClass('mbsc-cal-events-b');
            }
            u9HM('.mbsc-cal-events-arr', i2dM).css('left', f7dM.offset().left - i2dM.offset().left + R7dM / 2);
        }

        function p7dM(O7dM, g7dM) {
            var H7dM = B2dM[O7dM];
            if (H7dM) {
                var e7dM, w7dM, I7dM, X7dM, F7dM, u7dM, B7dM = '<ul class="mbsc-cal-event-list">';
                h7dM = 0;
                R2dM = g7dM;
                g7dM.addClass(G2dM).find('.mbsc-cal-day-i').addClass(L2dM);
                if (g7dM.hasClass(u2dM)) {
                    g7dM.attr('data-hl', 'true').removeClass(u2dM);
                }
                Z7dM(H7dM);
                u9HM.each(H7dM, function(U7dM, J7dM) {
                    X7dM = J7dM.d || J7dM.start;
                    F7dM = J7dM.start && J7dM.end && J7dM.start.toDateString() !== J7dM.end.toDateString();
                    I7dM = J7dM.color;
                    u7dM = N7dM(I7dM);
                    e7dM = '';
                    w7dM = '';
                    if (X7dM.getTime) {
                        e7dM = T36M.formatDate((F7dM ? 'MM d yy ' : '') + k2dM.timeFormat, X7dM);
                    }
                    if (J7dM.end) {
                        w7dM = T36M.formatDate((F7dM ? 'MM d yy ' : '') + k2dM.timeFormat, J7dM.end);
                    }
                    B7dM += '<li role="button" aria-label="' + J7dM.text + (e7dM ? ', ' + k2dM.fromText + ' ' + e7dM : '') + (w7dM ? ', ' + k2dM.toText + ' ' + w7dM : '') + '" class="mbsc-cal-event">' + '<div class="mbsc-cal-event-color" style="' + (I7dM ? 'background:' + I7dM + ';' : '') + '"></div>' + '<div class="mbsc-cal-event-text">' + (X7dM.getTime && !F7dM ? '<div class="mbsc-cal-event-time">' + T36M.formatDate(k2dM.timeFormat, X7dM) + '</div>' : '') + J7dM.text + '</div>' + (J7dM.start && J7dM.end ? '<div class="mbsc-cal-event-dur">' + D7dM(J7dM.end - J7dM.start) + '</div>' : '') + '</li>';
                });
                B7dM += '</ul>';
                x2dM.html(B7dM);
                s2dM.trigger('onEventBubbleShow', {
                    target: R2dM[0],
                    eventList: i2dM[0]
                });
                M7dM(R2dM);
                s2dM.tap(u9HM('.mbsc-cal-event', x2dM), function(j7dM) {
                    if (!H2dM.scrolled) {
                        s2dM.trigger('onEventSelect', {
                            domEvent: j7dM,
                            event: H7dM[u9HM(this).index()],
                            date: O7dM
                        });
                    }
                });
                J2dM = true;
            }
        }

        function e2dM() {
            if (i2dM) {
                i2dM.removeClass('mbsc-cal-events-v');
            }
            if (R2dM) {
                R2dM.removeClass(G2dM).find('.mbsc-cal-day-i').removeClass(L2dM);
                if (R2dM.attr('data-hl')) {
                    R2dM.removeAttr('data-hl').addClass(u2dM);
                }
            }
            J2dM = false;
        }

        function j2dM() {
            e2dM();
            s2dM.redraw();
        }

        function t7dM(x7dM) {
            return o16M(x7dM.getFullYear(), x7dM.getMonth(), x7dM.getDate());
        }
        var S2dM, X2dM, i2dM, R2dM, B2dM, H2dM, O2dM, x2dM, J2dM, h7dM, U2dM, F2dM, I2dM = {},
            d7dM = j9HM({}, s2dM.settings),
            k2dM = j9HM(s2dM.settings, h16M, d7dM),
            G2dM = 'mbsc-cal-day-sel mbsc-cal-day-ev',
            u2dM = 'mbsc-cal-day-hl',
            L2dM = k2dM.activeClass || '',
            w2dM = k2dM.showEventCount,
            g2dM = 0,
            v2dM = j9HM(true, [], k2dM.data);
        U2dM = a76M.calbase.call(this, s2dM);
        S2dM = j9HM({}, U2dM);
        u9HM.each(v2dM, function(G7dM, L7dM) {
            if (L7dM._id === undefined) {
                L7dM._id = g2dM++;
            }
        });
        s2dM.onGenMonth = function(S7dM, d1dM) {
            B2dM = s2dM.prepareObj(v2dM, S7dM, d1dM);
        };
        s2dM.getDayProps = function(t1dM) {
            var Z1dM, M1dM = B2dM[t1dM] ? B2dM[t1dM] : false,
                p1dM = M1dM ? B2dM[t1dM].length + ' ' + (B2dM[t1dM].length > 1 ? k2dM.eventsText : k2dM.eventText) : 0,
                h1dM = M1dM && M1dM[0] && M1dM[0].color,
                q1dM = w2dM && p1dM ? N7dM(h1dM) : '',
                N1dM = '',
                D1dM = '';
            if (M1dM) {
                for (Z1dM = 0; Z1dM < M1dM.length; Z1dM++) {
                    if (M1dM[Z1dM].icon) {
                        N1dM += '<span class="mbsc-ic mbsc-ic-' + M1dM[Z1dM].icon + '"' + (M1dM[Z1dM].text ? '' : M1dM[Z1dM].color ? ' style="color:' + M1dM[Z1dM].color + ';"' : '') + '></span>\n';
                    }
                }
                D1dM = '<div class="mbsc-cal-day-m"><div class="mbsc-cal-day-m-t">';
                for (Z1dM = 0; Z1dM < M1dM.length; Z1dM++) {
                    D1dM += '<div class="mbsc-cal-day-m-c"' + (M1dM[Z1dM].color ? ' style="background:' + M1dM[Z1dM].color + ';"' : '') + '></div>';
                }
                D1dM += '</div></div>';
            }
            return {
                marked: M1dM,
                selected: false,
                cssClass: M1dM ? 'mbsc-cal-day-marked' : '',
                ariaLabel: w2dM ? p1dM : '',
                markup: w2dM && p1dM ? '<div class="mbsc-cal-day-txt-c"><div class="mbsc-cal-day-txt" title="' + u9HM('<div>' + p1dM + '</div>').text() + '"' + (h1dM ? ' style="background:' + h1dM + ';color:' + q1dM + ';text-shadow:none;"' : '') + '>' + N1dM + p1dM + '</div></div>' : w2dM && N1dM ? '<div class="mbsc-cal-day-ic-c">' + N1dM + '</div>' : M1dM ? D1dM : ''
            };
        };
        s2dM.addEvent = function(o1dM) {
            var Y1dM = [];
            o1dM = j9HM(true, [], u9HM.isArray(o1dM) ? o1dM : [o1dM]);
            u9HM.each(o1dM, function(C1dM, n1dM) {
                if (n1dM._id === undefined) {
                    n1dM._id = g2dM++;
                }
                v2dM.push(n1dM);
                Y1dM.push(n1dM._id);
            });
            j2dM();
            return Y1dM;
        };
        s2dM.removeEvent = function(W1dM) {
            W1dM = u9HM.isArray(W1dM) ? W1dM : [W1dM];
            u9HM.each(W1dM, function(y1dM, m1dM) {
                u9HM.each(v2dM, function(a1dM, E1dM) {
                    if (E1dM._id === m1dM) {
                        v2dM.splice(a1dM, 1);
                        return false;
                    }
                });
            });
            j2dM();
        };
        s2dM.getEvents = function(P1dM) {
            var K1dM;
            if (P1dM) {
                P1dM.setHours(0, 0, 0, 0);
                K1dM = s2dM.prepareObj(v2dM, P1dM.getFullYear(), P1dM.getMonth());
                return K1dM[P1dM] ? Z7dM(K1dM[P1dM]) : [];
            }
            return j9HM(true, [], v2dM);
        };
        s2dM.setEvents = function(z1dM) {
            var V1dM = [];
            v2dM = j9HM(true, [], z1dM);
            u9HM.each(v2dM, function(A1dM, l1dM) {
                if (l1dM._id === undefined) {
                    l1dM._id = g2dM++;
                }
                V1dM.push(l1dM._id);
            });
            j2dM();
            return V1dM;
        };
        j9HM(U2dM, {
            highlight: false,
            outerMonthChange: false,
            headerText: false,
            buttons: k2dM.display !== 'inline' ? ['close'] : k2dM.buttons,
            onMarkupReady: function r1dM(b1dM) {
                S2dM.onMarkupReady.call(this, b1dM);
                X2dM = u9HM(b1dM.target);
                if (w2dM) {
                    u9HM('.mbsc-cal', X2dM).addClass('mbsc-cal-ev');
                }
                X2dM.addClass('mbsc-cal-em');
                i2dM = u9HM('<div class="mbsc-cal-events ' + (k2dM.eventBubbleClass || '') + '"><div class="mbsc-cal-events-arr"></div><div class="mbsc-cal-events-i"><div class="mbsc-cal-events-sc"></div></div></div>').appendTo(u9HM('.mbsc-cal-c', X2dM));
                O2dM = u9HM('.mbsc-cal-events-i', i2dM);
                x2dM = u9HM('.mbsc-cal-events-sc', i2dM);
                H2dM = new U9HM.classes.ScrollView(O2dM[0]);
                J2dM = false;
                s2dM.tap(O2dM, function() {
                    if (!H2dM.scrolled) {
                        e2dM();
                    }
                });
            },
            onMonthChange: function c1dM() {
                e2dM();
            },
            onSelectShow: function T1dM() {
                e2dM();
            },
            onMonthLoaded: function f1dM() {
                if (F2dM) {
                    p7dM(F2dM.d, u9HM('.mbsc-cal-day-v[data-full="' + F2dM.full + '"]:not(.mbsc-cal-day-diff)', X2dM));
                    F2dM = false;
                }
            },
            onDayChange: function Q1dM(i1dM) {
                var v1dM = i1dM.date,
                    k1dM = t7dM(v1dM),
                    s1dM = u9HM(i1dM.target);
                e2dM();
                if (!s1dM.hasClass('mbsc-cal-day-ev')) {
                    setTimeout(function() {
                        if (s2dM.changing) {
                            F2dM = {
                                d: k1dM,
                                full: s1dM.attr('data-full')
                            };
                        } else {
                            p7dM(k1dM, s1dM);
                        }
                    }, 10);
                }
                return false;
            },
            onCalResize: function R1dM() {
                if (J2dM) {
                    M7dM(R2dM);
                }
            },
            onHide: function H1dM() {
                S2dM.onHide.call(s2dM);
                if (H2dM) {
                    H2dM.destroy();
                }
            }
        });
        return U2dM;
    };
    var t16M = this && this.__extends || function() {
        var X1dM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(w1dM, B1dM) {
            w1dM.__proto__ = B1dM;
        } || function(I1dM, F1dM) {
            for (var e1dM in F1dM) {
                if (F1dM.hasOwnProperty(e1dM)) I1dM[e1dM] = F1dM[e1dM];
            }
        };
        return function(O1dM, g1dM) {
            function u1dM() {
                this.constructor = O1dM;
            }
            X1dM(O1dM, g1dM);
            O1dM.prototype = g1dM === null ? Object.create(g1dM) : (u1dM.prototype = g1dM.prototype, new u1dM());
        };
    }();
    var z76M = function(U1dM) {
        function J1dM(j1dM, x1dM) {
            return U1dM.call(this, j1dM, x1dM, null, null) || this;
        }
        t16M(J1dM, U1dM);
        J1dM.prototype.setNewValue = function(L1dM) {};
        J1dM.prototype.refreshData = function(G1dM) {
            this._instance.setEvents(G1dM);
        };
        J1dM.prototype.ngAfterViewInit = function() {
            U1dM.prototype.ngAfterViewInit.call(this);
            var S1dM = j9HM({
                preset: 'eventcalendar'
            }, this.options, {
                data: this.data
            }, this.optionExtensions);
            this._instance = new N66M(this.element, S1dM);
        };
        J1dM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-eventcalendar]',
                exportAs: 'mobiscroll'
            }]
        }];
        J1dM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }];
        };
        return J1dM;
    }(P36M);
    var M36M = U9HM.classes;
    var A46M = function d8dM(D8dM, t8dM) {
        var Z8dM = '',
            N8dM = u9HM(D8dM),
            p8dM = this,
            M8dM = p8dM.settings;
        M36M.Base.call(this, D8dM, t8dM, true);
        p8dM._init = function() {
            var o8dM = M8dM.context,
                h8dM = u9HM(o8dM),
                Y8dM = h8dM.find('.mbsc-ms-top .mbsc-ms'),
                n8dM = h8dM.find('.mbsc-ms-bottom .mbsc-ms'),
                q8dM = {};
            if (o8dM == 'body') {
                u9HM('body,html').addClass('mbsc-page-ctx');
            } else {
                h8dM.addClass('mbsc-page-ctx');
            }
            if (Z8dM) {
                N8dM.removeClass(Z8dM);
            }
            if (Y8dM.length) {
                q8dM.paddingTop = Y8dM[0].offsetHeight;
            }
            if (n8dM.length) {
                q8dM.paddingBottom = n8dM[0].offsetHeight;
            }
            Z8dM = 'mbsc-page mbsc-' + M8dM.theme + (M8dM.baseTheme ? ' mbsc-' + M8dM.baseTheme : '') + (M8dM.rtl ? ' mbsc-rtl' : ' mbsc-ltr');
            N8dM.addClass(Z8dM).css(q8dM);
        };
        p8dM._destroy = function() {
            N8dM.removeClass(Z8dM);
        };
        M8dM = p8dM.settings;
        p8dM.init(t8dM);
    };
    A46M.prototype = {
        _hasDef: true,
        _hasTheme: true,
        _hasLang: true,
        _class: 'page',
        _defaults: {
            context: 'body'
        }
    };
    M36M.Page = A46M;
    U9HM.themes.page.mobiscroll = {};
    U9HM.presetShort('page', 'Page');
    if (Y66M) {
        u9HM(function() {
            var C8dM = '[mbsc-page]';
            u9HM(C8dM).each(function() {
                new M36M.Page(this);
            });
            u9HM(document).on('mbsc-enhance', function(W8dM, m8dM) {
                if (u9HM(W8dM.target).is(C8dM)) {
                    new M36M.Page(W8dM.target, m8dM);
                } else {
                    u9HM(C8dM, W8dM.target).each(function() {
                        new M36M.Page(this, m8dM);
                    });
                }
            });
        });
    }
    var l66M = function y8dM(z8dM, l8dM, r8dM) {
        function A8dM(b8dM) {
            if (!u9HM('.mbsc-fr-c', b8dM).hasClass('mbsc-wdg-c')) {
                u9HM('.mbsc-fr-c', b8dM).addClass('mbsc-wdg-c').append(P8dM.show());
                if (!u9HM('.mbsc-w-p', b8dM).length) {
                    u9HM('.mbsc-fr-c', b8dM).addClass('mbsc-w-p');
                }
            }
        }
        var a8dM, K8dM, V8dM, P8dM = u9HM(z8dM),
            E8dM = this;
        V66M.call(this, z8dM, l8dM, true);
        E8dM._generateContent = function() {
            return '';
        };
        E8dM._markupReady = function(c8dM) {
            if (a8dM.display != 'inline') {
                A8dM(c8dM);
            }
        };
        E8dM._markupInserted = function(T8dM) {
            if (a8dM.display == 'inline') {
                A8dM(T8dM);
            }
            T8dM.trigger('mbsc-enhance', [{
                theme: a8dM.theme,
                lang: a8dM.lang
            }]);
        };
        E8dM._markupRemove = function() {
            P8dM.hide();
            if (K8dM) {
                K8dM.prepend(P8dM);
            } else {
                V8dM.after(P8dM);
            }
        };
        E8dM.__processSettings = function() {
            a8dM = E8dM.settings;
            E8dM.buttons.ok = {
                text: a8dM.okText,
                icon: a8dM.okIcon,
                handler: 'set'
            };
            a8dM.buttons = a8dM.buttons || (a8dM.display == 'inline' ? [] : ['ok']);
            if (!K8dM && !V8dM) {
                V8dM = P8dM.prev();
                if (!V8dM.length) {
                    K8dM = P8dM.parent();
                }
            }
            P8dM.hide();
        };
        E8dM.__init = function() {
            a8dM.cssClass = (a8dM.cssClass || '') + ' mbsc-wdg';
        };
        if (!r8dM) {
            E8dM.init(l8dM);
        }
    };
    l66M.prototype = {
        _hasDef: true,
        _hasTheme: true,
        _hasContent: true,
        _class: 'widget',
        _defaults: j9HM({}, V66M.prototype._defaults, {
            okText: 'OK',
            headerText: false
        })
    };
    U9HM.classes.Widget = l66M;
    U9HM.themes.widget = U9HM.themes.frame;
    U9HM.presetShort('widget', 'Widget', false);
    var D16M = Y66M && !!window.Promise;
    var m66M = [];
    var F66M = [];
    U9HM.alert = function(b0dM) {
        var r0dM = document.createElement('div');
        r0dM.innerHTML = v46M(b0dM);
        return w36M(W86M, r0dM, b0dM);
    };
    U9HM.confirm = function(T0dM) {
        var c0dM = document.createElement('div');
        c0dM.innerHTML = v46M(T0dM);
        return w36M(h86M, c0dM, T0dM);
    };
    U9HM.prompt = function(f0dM) {
        var Q0dM = document.createElement('div');
        Q0dM.innerHTML = v46M(f0dM) + '<label class="mbsc-input">' + (f0dM.label ? '<span class="mbsc-label">' + f0dM.label + '</span>' : '') + '<input type="' + (f0dM.inputType || 'text') + '" placeholder="' + (f0dM.placeholder || '') + '" value="' + (f0dM.value || '') + '">' + '</label>';
        return w36M(y86M, Q0dM, f0dM);
    };
    U9HM.snackbar = function(s0dM) {
        var k0dM = document.createElement('div');
        k0dM.innerHTML = '<div class="mbsc-snackbar-cont"><div class="mbsc-snackbar-msg">' + (s0dM.message || '') + '</div>' + (s0dM.button ? '<button class="mbsc-snackbar-btn mbsc-btn mbsc-btn-flat">' + (s0dM.button.text || '') + '</button>' : '') + '</div>';
        return w36M(S76M, k0dM, s0dM);
    };
    U9HM.toast = function(v0dM) {
        var i0dM = document.createElement('div');
        i0dM.innerHTML = '<div class="mbsc-toast-msg">' + (v0dM.message || '') + '</div>';
        return w36M(a86M, i0dM, v0dM);
    };
    var B36M = 'mbsc-input-wrap';
    var J36M = U9HM.util;
    var g36M = J36M.getCoord;
    var J76M = J36M.testTouch;
    var j46M = ['touchstart', 'touchmove', 'touchend', 'touchcancel', 'mousedown', 'mousemove', 'mouseup', 'mouseleave'];
    var u76M = {
        tap: true
    };
    var D36M = void 0;
    var H66M = function() {
        function D5dM(Y5dM, m5dM) {
            var W5dM = this;
            y66M(this, D5dM);
            var n5dM = j9HM({}, u76M, m5dM);
            var t5dM = u9HM(Y5dM);
            var h5dM = t5dM.parent();
            var q5dM = h5dM.hasClass('mbsc-input-wrap') ? h5dM.parent() : h5dM;
            var o5dM = t5dM.next().hasClass('mbsc-fr') ? t5dM.next() : null;
            var C5dM = g76M(t5dM);
            if (o5dM) {
                o5dM.insertAfter(q5dM);
            }
            j76M(q5dM, C5dM);
            t5dM.addClass('mbsc-control');
            j46M.forEach(function(y5dM) {
                Y5dM.addEventListener(y5dM, W5dM);
            });
            this.settings = n5dM;
            this._type = C5dM;
            this._elm = Y5dM;
            this._$elm = t5dM;
            this._$parent = q5dM;
            this._$frame = o5dM;
            this._ripple = I76M(n5dM.theme);
        }
        k36M(D5dM, [{
            key: 'destroy',
            value: function a5dM() {
                var E5dM = this;
                this._$elm.removeClass('mbsc-control');
                j46M.forEach(function(P5dM) {
                    E5dM._elm.removeEventListener(P5dM, E5dM);
                });
            }
        }, {
            key: 'option',
            value: function K5dM(V5dM) {
                j9HM(this.settings, V5dM);
                this._ripple = I76M(this.settings.theme);
            }
        }, {
            key: 'handleEvent',
            value: function z5dM(l5dM) {
                switch (l5dM.type) {
                    case 'touchstart':
                    case 'mousedown':
                        this._onStart(l5dM);
                        break;
                    case 'touchmove':
                    case 'mousemove':
                        this._onMove(l5dM);
                        break;
                    case 'touchend':
                    case 'touchcancel':
                    case 'mouseup':
                    case 'mouseleave':
                        this._onEnd(l5dM);
                }
            }
        }, {
            key: '_addRipple',
            value: function A5dM(r5dM) {
                if (this._ripple && this._$rippleElm) {
                    this._ripple.addRipple(this._$rippleElm, r5dM);
                }
            }
        }, {
            key: '_removeRipple',
            value: function b5dM() {
                if (this._ripple && this._$rippleElm) {
                    this._ripple.removeRipple();
                }
            }
        }, {
            key: '_onStart',
            value: function c5dM(T5dM) {
                var f5dM = this._elm;
                if (J76M(T5dM, f5dM)) {
                    this._startX = g36M(T5dM, 'X');
                    this._startY = g36M(T5dM, 'Y');
                    if (D36M) {
                        D36M.removeClass('mbsc-active');
                    }
                    if (!f5dM.disabled) {
                        this._isActive = true;
                        D36M = this._$elm;
                        D36M.addClass('mbsc-active');
                        this._addRipple(T5dM);
                    }
                }
            }
        }, {
            key: '_onMove',
            value: function Q5dM(s5dM) {
                if (this._isActive && Math.abs(g36M(s5dM, 'X') - this._startX) > 9 || Math.abs(g36M(s5dM, 'Y') - this._startY) > 9) {
                    this._$elm.removeClass('mbsc-active');
                    this._removeRipple();
                    this._isActive = false;
                }
            }
        }, {
            key: '_onEnd',
            value: function k5dM(R5dM) {
                var X5dM = this;
                var i5dM = this._elm;
                var w5dM = this._type;
                if (this._isActive && this.settings.tap && R5dM.type == 'touchend' && !i5dM.readOnly) {
                    i5dM.focus();
                    if (/(button|submit|checkbox|switch|radio)/.test(w5dM)) {
                        R5dM.preventDefault();
                    }
                    if (!/select/.test(w5dM)) {
                        var v5dM = (R5dM.originalEvent || R5dM).changedTouches[0],
                            H5dM = document.createEvent('MouseEvents');
                        H5dM.initMouseEvent('click', true, true, window, 1, v5dM.screenX, v5dM.screenY, v5dM.clientX, v5dM.clientY, false, false, false, false, 0, null);
                        H5dM.tap = true;
                        i5dM.mbscChange = true;
                        i5dM.dispatchEvent(H5dM);
                        J36M.preventClick();
                    }
                }
                if (this._isActive) {
                    setTimeout(function() {
                        X5dM._$elm.removeClass('mbsc-active');
                        X5dM._removeRipple();
                    }, 100);
                }
                this._isActive = false;
                D36M = null;
            }
        }]);
        return D5dM;
    }();
    var X36M = function(e5dM) {
        function B5dM(I5dM) {
            y66M(this, B5dM);
            var F5dM = c66M(this, (B5dM.__proto__ || Object.getPrototypeOf(B5dM)).call(this, I5dM));
            E86M(F5dM, F5dM._$parent, F5dM._$elm);
            F5dM._$parent.addClass('mbsc-input');
            return F5dM;
        }
        s66M(B5dM, e5dM);
        k36M(B5dM, [{
            key: 'destroy',
            value: function g5dM() {
                L66M(B5dM.prototype.__proto__ || Object.getPrototypeOf(B5dM.prototype), 'destroy', this).call(this);
                this._$parent.removeClass('mbsc-ic-left mbsc-ic-right').find('.mbsc-input-ic').remove();
            }
        }]);
        return B5dM;
    }(H66M);
    var Z26M = function(u5dM) {
        function O5dM(x5dM, L5dM) {
            y66M(this, O5dM);
            var U5dM = c66M(this, (O5dM.__proto__ || Object.getPrototypeOf(O5dM)).call(this, x5dM, L5dM));
            var J5dM = U5dM._$elm;
            var j5dM = J5dM.attr('data-icon');
            J5dM.addClass('mbsc-btn').find('.mbsc-btn-ic').remove();
            if (j5dM) {
                J5dM.prepend('<span class="mbsc-btn-ic mbsc-ic mbsc-ic-' + j5dM + '"></span>');
                if (J5dM.text() === "") {
                    J5dM.addClass('mbsc-btn-icon-only');
                }
            }
            U5dM._$rippleElm = J5dM;
            return U5dM;
        }
        s66M(O5dM, u5dM);
        return O5dM;
    }(H66M);
    var p26M = function(S5dM) {
        function G5dM(M9dM) {
            y66M(this, G5dM);
            var d9dM = c66M(this, (G5dM.__proto__ || Object.getPrototypeOf(G5dM)).call(this, M9dM));
            d9dM._$parent.prepend(d9dM._$elm).addClass('mbsc-checkbox mbsc-control-w').find('.mbsc-checkbox-box').remove();
            d9dM._$elm.after('<span class="mbsc-checkbox-box"></span>');
            return d9dM;
        }
        s66M(G5dM, S5dM);
        return G5dM;
    }(H66M);
    var N26M = function(p9dM) {
        function Z9dM(D9dM) {
            y66M(this, Z9dM);
            var N9dM = c66M(this, (Z9dM.__proto__ || Object.getPrototypeOf(Z9dM)).call(this, D9dM));
            N9dM._$parent.addClass('mbsc-radio mbsc-control-w').find('.mbsc-radio-box').remove();
            N9dM._$elm.after('<span class="mbsc-radio-box"><span></span></span>');
            return N9dM;
        }
        s66M(Z9dM, p9dM);
        return Z9dM;
    }(H66M);
    var D26M = function(h9dM) {
        function t9dM(C9dM) {
            y66M(this, t9dM);
            var q9dM = c66M(this, (t9dM.__proto__ || Object.getPrototypeOf(t9dM)).call(this, C9dM));
            var W9dM = q9dM._$elm;
            var Y9dM = q9dM._$parent;
            var n9dM = Y9dM.find('input.mbsc-control');
            var o9dM = n9dM.length ? n9dM : u9HM('<input tabindex="-1" class="mbsc-control" readonly>');
            q9dM._$input = o9dM;
            Y9dM.addClass('mbsc-select' + (q9dM._$frame ? ' mbsc-select-inline' : ''));
            W9dM.after(o9dM);
            o9dM.after('<span class="mbsc-select-ic mbsc-ic mbsc-ic-arrow-down5"></span>');
            if (!o9dM.hasClass('mbsc-comp')) {
                C9dM.addEventListener('change', q9dM);
                q9dM._setText();
            }
            return q9dM;
        }
        s66M(t9dM, h9dM);
        k36M(t9dM, [{
            key: 'destroy',
            value: function m9dM() {
                L66M(t9dM.prototype.__proto__ || Object.getPrototypeOf(t9dM.prototype), 'destroy', this).call(this);
                this._$elm.after(this._$input);
                this._elm.removeEventListener('change', this);
            }
        }, {
            key: 'handleEvent',
            value: function y9dM(a9dM) {
                L66M(t9dM.prototype.__proto__ || Object.getPrototypeOf(t9dM.prototype), 'handleEvent', this).call(this, a9dM);
                if (a9dM.type == 'change') {
                    this._setText();
                }
            }
        }, {
            key: '_setText',
            value: function E9dM() {
                var P9dM = this._elm;
                this._$input.val(P9dM.selectedIndex != -1 ? P9dM.options[P9dM.selectedIndex].text : '');
            }
        }]);
        return t9dM;
    }(X36M);
    var t26M = ['keydown', 'input', 'scroll'];
    var F46M = void 0;
    if (Y66M) {
        u9HM(window).on('resize orientationchange', e76M);
    }
    var n26M = function(Q9dM) {
        function f9dM(k9dM) {
            y66M(this, f9dM);
            var s9dM = c66M(this, (f9dM.__proto__ || Object.getPrototypeOf(f9dM)).call(this, k9dM));
            s9dM._$parent.addClass('mbsc-textarea');
            t26M.forEach(function(i9dM) {
                s9dM._elm.addEventListener(i9dM, s9dM);
            });
            o26M(k9dM);
            return s9dM;
        }
        s66M(f9dM, Q9dM);
        k36M(f9dM, [{
            key: 'destroy',
            value: function v9dM() {
                var R9dM = this;
                L66M(f9dM.prototype.__proto__ || Object.getPrototypeOf(f9dM.prototype), 'destroy', this).call(this);
                t26M.forEach(function(H9dM) {
                    R9dM._elm.removeEventListener(H9dM, R9dM);
                });
            }
        }, {
            key: 'handleEvent',
            value: function X9dM(w9dM) {
                L66M(f9dM.prototype.__proto__ || Object.getPrototypeOf(f9dM.prototype), 'handleEvent', this).call(this, w9dM);
                switch (w9dM.type) {
                    case 'keydown':
                    case 'input':
                        this._onInput(w9dM);
                        break;
                    case 'scroll':
                        P86M(this._elm);
                }
            }
        }, {
            key: '_onInput',
            value: function B9dM() {
                var e9dM = this;
                clearTimeout(this._debounce);
                this._debounce = setTimeout(function() {
                    o26M(e9dM._elm);
                }, 100);
            }
        }]);
        return f9dM;
    }(X36M);
    var C26M = function(I9dM) {
        function F9dM(j9dM, x9dM) {
            y66M(this, F9dM);
            var O9dM = c66M(this, (F9dM.__proto__ || Object.getPrototypeOf(F9dM)).call(this, j9dM, x9dM));
            var u9dM = void 0;
            var g9dM = void 0;
            var U9dM = O9dM._$elm;
            var J9dM = O9dM._$parent;
            if (!J9dM.hasClass('mbsc-segmented-item-ready')) {
                u9dM = u9HM('<div class="mbsc-segmented"></div>');
                J9dM.after(u9dM);
                J9dM.parent().find('input[name="' + U9dM.attr('name') + '"]').each(function() {
                    var L9dM = u9HM(this);
                    g9dM = L9dM.parent().addClass('mbsc-segmented-item mbsc-segmented-item-ready');
                    u9HM('<span class="mbsc-segmented-content">' + (L9dM.attr('data-icon') ? '<span class="mbsc-ic mbsc-ic-' + L9dM.attr('data-icon') + '"></span>' : '') + '</span>').append(g9dM.contents()).appendTo(g9dM);
                    g9dM.prepend(L9dM);
                    u9dM.append(g9dM);
                });
            }
            O9dM._$rippleElm = U9dM.next();
            return O9dM;
        }
        s66M(F9dM, I9dM);
        return F9dM;
    }(H66M);
    var W26M = U9HM.util;
    var i36M = W26M.getCoord;
    var X76M = W26M.testTouch;
    var A36M = function G9dM(q6uM, z6uM) {
        function f6uM(w6uM) {
            if (w6uM.keyCode == 32) {
                w6uM.preventDefault();
                if (!N6uM && !q6uM.disabled) {
                    h6uM = u9HM(this).addClass('mbsc-active');
                    H6uM(w6uM);
                }
            }
        }

        function Q6uM(B6uM) {
            if (N6uM) {
                B6uM.preventDefault();
                A6uM(true);
            }
        }

        function s6uM(e6uM) {
            if (X76M(e6uM, this) && !q6uM.disabled) {
                h6uM = u9HM(this).addClass('mbsc-active').trigger('focus');
                if (C6uM && !h6uM.hasClass('mbsc-step-disabled')) {
                    C6uM.addRipple(h6uM.find('.mbsc-segmented-content'), e6uM);
                }
                H6uM(e6uM);
                if (e6uM.type === 'mousedown') {
                    u9HM(document).on('mousemove', y6uM).on('mouseup', m6uM);
                }
            }
        }

        function m6uM(F6uM) {
            if (N6uM) {
                F6uM.preventDefault();
                A6uM(true, F6uM);
                if (F6uM.type === 'mouseup') {
                    u9HM(document).off('mousemove', y6uM).off('mouseup', m6uM);
                }
            }
        }

        function y6uM(I6uM) {
            if (N6uM) {
                c6uM = i36M(I6uM, 'X');
                k6uM = i36M(I6uM, 'Y');
                X6uM = c6uM - i6uM;
                R6uM = k6uM - T6uM;
                if (Math.abs(X6uM) > 7 || Math.abs(R6uM) > 7) {
                    A6uM();
                }
            }
        }

        function v6uM() {
            var g6uM;
            if (!q6uM.disabled) {
                g6uM = parseFloat(u9HM(this).val());
                Y6uM(isNaN(g6uM) ? S9dM : g6uM);
            }
        }

        function Y6uM(J6uM, O6uM, u6uM) {
            K6uM = S9dM;
            if (O6uM === undefined) {
                O6uM = true;
            }
            if (u6uM === undefined) {
                u6uM = O6uM;
            }
            if (J6uM !== undefined) {
                S9dM = Math.min(p6uM, Math.max(Math.round(J6uM / M6uM) * M6uM, Z6uM));
            } else {
                S9dM = Math.min(p6uM, Math.max(S9dM + (h6uM.hasClass('mbsc-stepper-minus') ? -M6uM : M6uM), Z6uM));
            }
            a6uM = true;
            V6uM.removeClass('mbsc-step-disabled');
            if (O6uM) {
                d6uM.val(S9dM);
            }
            if (S9dM == Z6uM) {
                P6uM.addClass('mbsc-step-disabled');
            } else if (S9dM == p6uM) {
                r6uM.addClass('mbsc-step-disabled');
            }
            if (S9dM !== K6uM && u6uM) {
                d6uM.trigger('change');
            }
        }

        function H6uM(U6uM) {
            if (!N6uM) {
                N6uM = true;
                a6uM = false;
                i6uM = i36M(U6uM, 'X');
                T6uM = i36M(U6uM, 'Y');
                clearInterval(o6uM);
                clearTimeout(o6uM);
                o6uM = setTimeout(function() {
                    Y6uM();
                    o6uM = setInterval(function() {
                        Y6uM();
                    }, 150);
                }, 300);
            }
        }

        function A6uM(j6uM) {
            clearInterval(o6uM);
            clearTimeout(o6uM);
            if (!a6uM && j6uM) {
                Y6uM();
            }
            N6uM = false;
            a6uM = false;
            h6uM.removeClass('mbsc-active');
            if (C6uM) {
                setTimeout(function() {
                    C6uM.removeRipple();
                }, 100);
            }
        }

        function l6uM(L6uM, G6uM) {
            var x6uM = d6uM.attr(L6uM);
            return x6uM === undefined || x6uM === '' ? G6uM : +x6uM;
        }
        var h6uM, r6uM, P6uM, V6uM, N6uM, a6uM, X6uM, R6uM, b6uM, c6uM, k6uM, o6uM, p6uM, Z6uM, C6uM, M6uM, n6uM, i6uM, T6uM, W6uM, S9dM, D6uM = this,
            d6uM = u9HM(q6uM),
            E6uM, t6uM, K6uM = S9dM;
        U9HM.classes.Base.call(this, q6uM, z6uM, true);
        D6uM.getVal = function() {
            var S6uM = parseFloat(d6uM.val());
            S6uM = isNaN(S6uM) ? S9dM : S6uM;
            return Math.min(p6uM, Math.max(Math.round(S6uM / M6uM) * M6uM, Z6uM));
        };
        D6uM.setVal = function(d3uM, M3uM, Z3uM) {
            d3uM = parseFloat(d3uM);
            Y6uM(isNaN(d3uM) ? S9dM : d3uM, M3uM, Z3uM);
        };
        D6uM._init = function(p3uM) {
            E6uM = d6uM.parent().hasClass('mbsc-stepper');
            t6uM = E6uM ? d6uM.closest('.mbsc-stepper-cont') : d6uM.parent();
            n6uM = D6uM.settings;
            Z6uM = p3uM.min === undefined ? l6uM('min', n6uM.min) : p3uM.min;
            p6uM = p3uM.max === undefined ? l6uM('max', n6uM.max) : p3uM.max;
            M6uM = p3uM.step === undefined ? l6uM('step', n6uM.step) : p3uM.step;
            b6uM = d6uM.attr('data-val') || n6uM.val;
            S9dM = Math.min(p6uM, Math.max(Math.round(+q6uM.value / M6uM) * M6uM || 0, Z6uM));
            W6uM = U9HM.themes.form[z6uM.theme];
            C6uM = W6uM && W6uM.addRipple ? W6uM : null;
            if (!E6uM) {
                t6uM.addClass('mbsc-stepper-cont mbsc-control-w').append('<span class="mbsc-segmented mbsc-stepper"></span>').find('.mbsc-stepper').append('<span class="mbsc-segmented-item mbsc-stepper-control mbsc-stepper-minus ' + (S9dM == Z6uM ? 'mbsc-step-disabled' : '') + '"  tabindex="0"><span class="mbsc-segmented-content"><span class="mbsc-ic mbsc-ic-minus"></span></span></span>').append('<span class="mbsc-segmented-item mbsc-stepper-control mbsc-stepper-plus ' + (S9dM == p6uM ? 'mbsc-step-disabled' : '') + '"  tabindex="0"><span class="mbsc-segmented-content"> <span class="mbsc-ic mbsc-ic-plus"></span> </span></span>').prepend(d6uM);
            }
            P6uM = u9HM('.mbsc-stepper-minus', t6uM);
            r6uM = u9HM('.mbsc-stepper-plus', t6uM);
            if (!E6uM) {
                if (b6uM == 'left') {
                    t6uM.addClass('mbsc-stepper-val-left');
                    d6uM.after('<span class="mbsc-segmented-item"><span class="mbsc-segmented-content"></span></span>');
                } else if (b6uM == 'right') {
                    t6uM.addClass('mbsc-stepper-val-right');
                    r6uM.after('<span class="mbsc-segmented-item"><span class="mbsc-segmented-content"></span></span>');
                } else {
                    P6uM.after('<span class="mbsc-segmented-item"><span class="mbsc-segmented-content mbsc-stepper-val"></span></span>');
                }
            }
            d6uM.val(S9dM).attr('data-role', 'stepper').attr('min', Z6uM).attr('max', p6uM).attr('step', M6uM).on('change', v6uM);
            V6uM = u9HM('.mbsc-stepper-control', t6uM).on('keydown', f6uM).on('keyup', Q6uM).on('mousedown touchstart', s6uM).on('touchmove', y6uM).on('touchend touchcancel', m6uM);
            d6uM.addClass('mbsc-stepper-ready mbsc-control');
        };
        D6uM._destroy = function() {
            d6uM.removeClass('mbsc-control').off('change', v6uM);
            V6uM.off('keydown', f6uM).off('keyup', Q6uM).off('mousedown touchstart', s6uM).off('touchmove', y6uM).off('touchend touchcancel', m6uM);
        };
        D6uM.init(z6uM);
    };
    A36M.prototype = {
        _class: 'stepper',
        _defaults: {
            min: 0,
            max: 100,
            step: 1
        }
    };
    U9HM.classes.Stepper = A36M;
    U9HM.presetShort('stepper', 'Stepper');
    var E26M = function N3uM() {};
    var L36M = function D3uM(n3uM, C3uM, W3uM) {
        var Y3uM, h3uM, q3uM, o3uM, t3uM = this;
        U9HM.classes.Base.call(this, n3uM, C3uM, true);
        t3uM.__init = E26M;
        t3uM.__destroy = E26M;
        t3uM._init = function(y3uM) {
            var m3uM;
            o3uM = t3uM.settings;
            Y3uM = u9HM(n3uM);
            m3uM = !!h3uM;
            h3uM = Y3uM.parent();
            h3uM = h3uM.hasClass('mbsc-input-wrap') ? h3uM.parent() : h3uM;
            t3uM._$parent = h3uM;
            if (q3uM) {
                h3uM.removeClass(q3uM);
            }
            q3uM = t3uM._css + ' mbsc-progress-w mbsc-control-w mbsc-' + o3uM.theme + (o3uM.baseTheme ? ' mbsc-' + o3uM.baseTheme : '') + (o3uM.rtl ? ' mbsc-rtl' : ' mbsc-ltr');
            h3uM.addClass(q3uM);
            Y3uM.addClass('mbsc-control');
            t3uM.__init(y3uM);
            if (!m3uM) {
                t3uM._attachChange();
            }
            t3uM.refresh();
        };
        t3uM._destroy = function() {
            t3uM.__destroy();
            h3uM.removeClass(q3uM);
            Y3uM.removeClass('mbsc-control');
        };
        if (!W3uM) {
            t3uM.init(C3uM);
        }
    };
    L36M.prototype = {
        _class: 'progressbase'
    };
    var G36M = function a3uM() {};
    var S36M = U9HM.util;
    var V36M = S36M.getCoord;
    var v76M = S36M.testTouch;
    var M46M = function E3uM(g3uM, S3uM, W4uM) {
        function M4uM(m4uM) {
            if (v76M(m4uM, this) && !Q3uM && !g3uM.disabled) {
                if (f3uM.stopProp) {
                    m4uM.stopPropagation();
                }
                Q3uM = true;
                v3uM = false;
                I3uM = false;
                U3uM = V36M(m4uM, 'X');
                Z4uM = V36M(m4uM, 'Y');
                k3uM = U3uM;
                s3uM.removeClass('mbsc-progress-anim');
                u3uM = b3uM ? u9HM('.mbsc-slider-handle', this) : r3uM;
                if (B3uM) {
                    B3uM.removeClass('mbsc-handle-curr');
                }
                B3uM = u3uM.parent().addClass('mbsc-active mbsc-handle-curr');
                z3uM = +u3uM.attr('data-index');
                G3uM = s3uM[0].offsetWidth;
                j3uM = s3uM[0].getBoundingClientRect().left;
                if (m4uM.type === 'mousedown') {
                    m4uM.preventDefault();
                    u9HM(document).on('mousemove', e3uM).on('mouseup', R3uM);
                }
            }
        }

        function e3uM(y4uM) {
            if (Q3uM) {
                k3uM = V36M(y4uM, 'X');
                o4uM = V36M(y4uM, 'Y');
                t4uM = k3uM - U3uM;
                Y4uM = o4uM - Z4uM;
                if (Math.abs(t4uM) > 5 || v3uM) {
                    v3uM = true;
                    if (Math.abs(x3uM - new Date()) > 50) {
                        x3uM = new Date();
                        n4uM(k3uM, f3uM.round, p4uM);
                    }
                }
                if (v3uM) {
                    y4uM.preventDefault();
                } else if (Math.abs(Y4uM) > 7) {
                    O3uM(y4uM);
                }
            }
        }

        function R3uM(a4uM) {
            if (Q3uM) {
                a4uM.preventDefault();
                if (!b3uM) {
                    s3uM.addClass('mbsc-progress-anim');
                }
                n4uM(k3uM, true, true);
                if (!v3uM && !I3uM) {
                    if (a4uM.type == 'touchend') {
                        S36M.preventClick();
                    }
                    P3uM._onTap(K3uM[z3uM]);
                }
                O3uM();
            }
        }

        function N4uM() {
            if (Q3uM) {
                O3uM();
            }
        }

        function D4uM() {
            var E4uM = P3uM._readValue(u9HM(this)),
                P4uM = +u9HM(this).attr('data-index');
            if (E4uM !== K3uM[P4uM]) {
                K3uM[P4uM] = E4uM;
                c3uM(E4uM, P4uM);
            }
        }

        function d4uM(K4uM) {
            K4uM.stopPropagation();
        }

        function h4uM(V4uM) {
            V4uM.preventDefault();
        }

        function q4uM(l4uM) {
            var z4uM;
            if (!g3uM.disabled) {
                switch (l4uM.keyCode) {
                    case 38:
                    case 39:
                        z4uM = 1;
                        break;
                    case 40:
                    case 37:
                        z4uM = -1;
                        break;
                }
                if (z4uM) {
                    l4uM.preventDefault();
                    if (!X3uM) {
                        z3uM = +u9HM(this).attr('data-index');
                        c3uM(K3uM[z3uM] + A3uM * z4uM, z3uM, true);
                        X3uM = setInterval(function() {
                            c3uM(K3uM[z3uM] + A3uM * z4uM, z3uM, true);
                        }, 200);
                    }
                }
            }
        }

        function H3uM(A4uM) {
            A4uM.preventDefault();
            clearInterval(X3uM);
            X3uM = null;
        }

        function O3uM() {
            Q3uM = false;
            B3uM.removeClass('mbsc-active');
            u9HM(document).off('mousemove', e3uM).off('mouseup', R3uM);
        }

        function n4uM(b4uM, c4uM, T4uM) {
            var r4uM = c4uM ? Math.min(Math.round(Math.max((b4uM - j3uM) * 100 / G3uM, 0) / J3uM / A3uM) * A3uM * 100 / (i3uM - V3uM), 100) : Math.max(0, Math.min((b4uM - j3uM) * 100 / G3uM, 100));
            if (w3uM) {
                r4uM = 100 - r4uM;
            }
            c3uM(Math.round((V3uM + r4uM / J3uM) * F3uM) / F3uM, z3uM, T4uM, r4uM);
        }

        function C4uM(f4uM) {
            return (f4uM - V3uM) * 100 / (i3uM - V3uM);
        }

        function c3uM(Q4uM, s4uM, H4uM, i4uM, X4uM, v4uM) {
            var R4uM = r3uM.eq(s4uM),
                k4uM = R4uM.parent();
            Q4uM = Math.min(i3uM, Math.max(Q4uM, V3uM));
            if (v4uM === undefined) {
                v4uM = H4uM;
            }
            if (P3uM._update) {
                P3uM._update(Q4uM, K3uM, s4uM, i4uM, b3uM, X4uM, k4uM);
            } else {
                k4uM.css({
                    left: w3uM ? 'auto' : (i4uM || C4uM(Q4uM)) + '%',
                    right: w3uM ? (i4uM || C4uM(Q4uM)) + '%' : 'auto'
                });
            }
            if (Q4uM > V3uM) {
                k4uM.removeClass('mbsc-slider-start');
            } else if (K3uM[s4uM] > V3uM || X4uM) {
                k4uM.addClass('mbsc-slider-start');
            }
            if (H4uM && K3uM[s4uM] != Q4uM) {
                I3uM = true;
                K3uM[s4uM] = Q4uM;
                P3uM._fillValue(Q4uM, s4uM, v4uM);
            }
            R4uM.attr('aria-valuenow', Q4uM);
        }
        var l3uM, u3uM, B3uM, r3uM, L3uM, T3uM, s3uM, Q3uM, I3uM, t4uM, Y4uM, j3uM, k3uM, o4uM, z3uM, w3uM, p4uM, i3uM, V3uM, v3uM, b3uM, A3uM, f3uM, J3uM, U3uM, Z4uM, F3uM, X3uM, G3uM, K3uM, P3uM = this,
            x3uM = new Date();
        L36M.call(this, g3uM, S3uM, true);
        P3uM._onTap = G36M;
        P3uM.___init = G36M;
        P3uM.___destroy = G36M;
        P3uM._attachChange = function() {
            l3uM.on(f3uM.changeEvent, D4uM);
        };
        P3uM.__init = function(B4uM) {
            var w4uM;
            if (r3uM) {
                w4uM = true;
                r3uM.parent().remove();
            }
            P3uM.___init(B4uM);
            T3uM = P3uM._$parent;
            s3uM = P3uM._$track;
            l3uM = T3uM.find('input');
            f3uM = P3uM.settings;
            V3uM = P3uM._min;
            i3uM = P3uM._max;
            A3uM = P3uM._step;
            p4uM = P3uM._live;
            F3uM = A3uM % 1 !== 0 ? 100 / (+(A3uM % 1).toFixed(2) * 100) : 1;
            J3uM = 100 / (i3uM - V3uM) || 100;
            b3uM = l3uM.length > 1;
            w3uM = f3uM.rtl;
            K3uM = [];
            l3uM.each(function(e4uM) {
                K3uM[e4uM] = P3uM._readValue(u9HM(this));
                u9HM(this).attr('data-index', e4uM);
            });
            r3uM = T3uM.find('.mbsc-slider-handle');
            L3uM = T3uM.find(b3uM ? '.mbsc-slider-handle-cont' : '.mbsc-progress-cont');
            r3uM.on('keydown', q4uM).on('keyup', H3uM).on('blur', H3uM);
            L3uM.on('touchstart mousedown', M4uM).on('touchmove', e3uM).on('touchend touchcancel', R3uM).on('pointercancel', N4uM);
            if (!w4uM) {
                l3uM.on('click', d4uM);
                T3uM.on('click', h4uM);
            }
        };
        P3uM.__destroy = function() {
            T3uM.off('click', h4uM);
            l3uM.off(f3uM.changeEvent, D4uM).off('click', d4uM);
            r3uM.off('keydown', q4uM).off('keyup', H3uM).off('blur', H3uM);
            L3uM.off('touchstart mousedown', M4uM).off('touchmove', e3uM).off('touchend touchcancel', R3uM).off('pointercancel', N4uM);
            P3uM.___destroy();
        };
        P3uM.refresh = function() {
            l3uM.each(function(F4uM) {
                c3uM(P3uM._readValue(u9HM(this)), F4uM, true, false, true, false);
            });
        };
        P3uM.getVal = function() {
            return b3uM ? K3uM.slice(0) : K3uM[0];
        };
        P3uM.setVal = P3uM._setVal = function(I4uM, O4uM, g4uM) {
            if (!u9HM.isArray(I4uM)) {
                I4uM = [I4uM];
            }
            u9HM.each(I4uM, function(u4uM, J4uM) {
                c3uM(J4uM, u4uM, true, false, true, g4uM);
            });
        };
        if (!W4uM) {
            P3uM.init(S3uM);
        }
    };
    M46M.prototype = {
        _class: 'sliderbase'
    };
    var K36M = function U4uM(L4uM, G4uM) {
        var x4uM, S4uM, d2uM, M2uM, j4uM = this;
        G4uM = G4uM || {};
        j9HM(G4uM, {
            changeEvent: 'click',
            round: false
        });
        M46M.call(this, L4uM, G4uM, true);
        j4uM._readValue = function() {
            return L4uM.checked ? 1 : 0;
        };
        j4uM._fillValue = function(Z2uM, N2uM, p2uM) {
            x4uM.prop('checked', !!Z2uM);
            if (p2uM) {
                x4uM.trigger('change');
            }
        };
        j4uM._onTap = function(D2uM) {
            j4uM._setVal(D2uM ? 0 : 1);
        };
        j4uM.___init = function() {
            d2uM = j4uM.settings;
            x4uM = u9HM(L4uM);
            S4uM = x4uM.parent();
            S4uM.find('.mbsc-switch-track').remove();
            S4uM.prepend(x4uM);
            x4uM.attr('data-role', 'switch').after('<span class="mbsc-progress-cont mbsc-switch-track">' + '<span class="mbsc-progress-track mbsc-progress-anim">' + '<span class="mbsc-slider-handle-cont">' + '<span class="mbsc-slider-handle mbsc-switch-handle" data-index="0">' + '<span class="mbsc-switch-txt-off">' + d2uM.offText + '</span>' + '<span class="mbsc-switch-txt-on">' + d2uM.onText + '</span>' + '</span></span></span></span>');
            M2uM = new H66M(L4uM);
            j4uM._$track = S4uM.find('.mbsc-progress-track');
            j4uM._min = 0;
            j4uM._max = 1;
            j4uM._step = 1;
        };
        j4uM.___destroy = function() {
            M2uM.destroy();
        };
        j4uM.getVal = function() {
            return L4uM.checked;
        };
        j4uM.setVal = function(t2uM, h2uM, q2uM) {
            j4uM._setVal(t2uM ? 1 : 0, h2uM, q2uM);
        };
        j4uM.init(G4uM);
    };
    K36M.prototype = {
        _class: 'switch',
        _css: 'mbsc-switch',
        _hasTheme: true,
        _hasLang: true,
        _defaults: {
            stopProp: true,
            offText: 'Off',
            onText: 'On'
        }
    };
    U9HM.classes.Switch = K36M;
    U9HM.presetShort('switch', 'Switch');
    var x66M = function o2uM(r2uM, T2uM, f2uM) {
        function c2uM() {
            var Q2uM = E2uM('value', C2uM);
            if (Q2uM !== y2uM) {
                V2uM(Q2uM);
            }
        }

        function E2uM(k2uM, i2uM) {
            var s2uM = n2uM.attr(k2uM);
            return s2uM === undefined || s2uM === '' ? i2uM : +s2uM;
        }

        function V2uM(v2uM, X2uM, R2uM, H2uM) {
            v2uM = Math.min(a2uM, Math.max(v2uM, C2uM));
            b2uM.css('width', (v2uM - C2uM) * 100 / (a2uM - C2uM) + '%');
            if (R2uM === undefined) {
                R2uM = true;
            }
            if (H2uM === undefined) {
                H2uM = R2uM;
            }
            if (v2uM !== y2uM || X2uM) {
                Y2uM._display(v2uM);
            }
            if (v2uM !== y2uM) {
                y2uM = v2uM;
                if (R2uM) {
                    n2uM.attr('value', y2uM);
                }
                if (H2uM) {
                    n2uM.trigger('change');
                }
            }
        }
        var P2uM, n2uM, W2uM, b2uM, l2uM, K2uM, C2uM, a2uM, m2uM, A2uM, y2uM, z2uM, Y2uM = this;
        L36M.call(this, r2uM, T2uM, true);
        Y2uM._display = function(w2uM) {
            z2uM = A2uM && m2uM.returnAffix ? A2uM.replace(/\{value\}/, w2uM).replace(/\{max\}/, a2uM) : w2uM;
            if (l2uM) {
                l2uM.html(z2uM);
            }
            if (P2uM) {
                P2uM.html(z2uM);
            }
        };
        Y2uM._attachChange = function() {
            n2uM.on('change', c2uM);
        };
        Y2uM.__init = function(I2uM) {
            var e2uM, F2uM, B2uM, g2uM;
            m2uM = Y2uM.settings;
            n2uM = u9HM(r2uM);
            g2uM = !!W2uM;
            W2uM = Y2uM._$parent;
            C2uM = Y2uM._min = I2uM.min === undefined ? E2uM('min', m2uM.min) : I2uM.min;
            a2uM = Y2uM._max = I2uM.max === undefined ? E2uM('max', m2uM.max) : I2uM.max;
            y2uM = E2uM('value', C2uM);
            e2uM = n2uM.attr('data-val') || m2uM.val;
            B2uM = n2uM.attr('data-step-labels');
            B2uM = B2uM ? JSON.parse(B2uM) : m2uM.stepLabels;
            A2uM = n2uM.attr('data-template') || (a2uM == 100 && !m2uM.template ? '{value}%' : m2uM.template);
            if (!g2uM) {
                j76M(W2uM);
                L76M(n2uM);
                W2uM.find('.mbsc-input-wrap').append('<span class="mbsc-progress-cont"><span class="mbsc-progress-track mbsc-progress-anim"><span class="mbsc-progress-bar"></span></span></span>');
                b2uM = Y2uM._$progress = W2uM.find('.mbsc-progress-bar');
                K2uM = Y2uM._$track = W2uM.find('.mbsc-progress-track');
            } else {
                if (e2uM) {
                    P2uM.remove();
                    W2uM.removeClass('mbsc-progress-value-' + (e2uM == 'right' ? 'right' : 'left'));
                }
                if (B2uM) {
                    u9HM('.mbsc-progress-step-label', K2uM).remove();
                }
            }
            n2uM.attr('min', C2uM).attr('max', a2uM);
            if (e2uM) {
                P2uM = u9HM('<span class="mbsc-progress-value"></span>');
                W2uM.addClass('mbsc-progress-value-' + (e2uM == 'right' ? 'right' : 'left')).find('.mbsc-input-wrap').append(P2uM);
            }
            if (B2uM) {
                for (F2uM = 0; F2uM < B2uM.length; ++F2uM) {
                    K2uM.append('<span class="mbsc-progress-step-label" style="' + (m2uM.rtl ? 'right' : 'left') + ': ' + (B2uM[F2uM] - C2uM) * 100 / (a2uM - C2uM) + '%" >' + B2uM[F2uM] + '</span>');
                }
            }
            l2uM = u9HM(n2uM.attr('data-target') || m2uM.target);
        };
        Y2uM.__destroy = function() {
            W2uM.removeClass('mbsc-ic-left mbsc-ic-right').find('.mbsc-progress-cont').remove();
            W2uM.find('.mbsc-input-ic').remove();
            n2uM.off('change', c2uM);
        };
        Y2uM.refresh = function() {
            V2uM(E2uM('value', C2uM), true, false);
        };
        Y2uM.getVal = function() {
            return y2uM;
        };
        Y2uM.setVal = function(O2uM, u2uM, J2uM) {
            V2uM(O2uM, true, u2uM, J2uM);
        };
        if (!f2uM) {
            Y2uM.init(T2uM);
        }
    };
    x66M.prototype = {
        _class: 'progress',
        _css: 'mbsc-progress',
        _hasTheme: true,
        _hasLang: true,
        _defaults: {
            min: 0,
            max: 100,
            returnAffix: true
        }
    };
    U9HM.classes.Progress = x66M;
    U9HM.presetShort('progress', 'Progress');
    var j66M = function U2uM(n7uM, o7uM, E7uM) {
        function x2uM(P7uM) {
            return (P7uM - d7uM) * 100 / (Z7uM - d7uM);
        }

        function q7uM(V7uM, z7uM) {
            var K7uM = L2uM.attr(V7uM);
            return K7uM === undefined || K7uM === '' ? z7uM : K7uM === 'true';
        }
        var L2uM, M7uM, N7uM, W7uM, t7uM, D7uM, h7uM, Y7uM, G2uM, Z7uM, d7uM, p7uM, S2uM, j2uM = this;
        x66M.call(this, n7uM, o7uM, true);
        var y7uM = j2uM.__init,
            a7uM = j2uM.__destroy;
        M46M.call(this, n7uM, o7uM, true);
        var m7uM = j2uM.__init,
            C7uM = j2uM.__destroy;
        j2uM.__init = function(l7uM) {
            y7uM(l7uM);
            m7uM(l7uM);
        };
        j2uM.__destroy = function() {
            a7uM();
            C7uM();
        };
        j2uM._update = function(A7uM, r7uM, b7uM, c7uM, T7uM, f7uM, Q7uM) {
            if (Y7uM) {
                if (b7uM === 0) {
                    A7uM = Math.min(A7uM, r7uM[1]);
                    N7uM.css({
                        width: x2uM(r7uM[1]) - x2uM(A7uM) + '%',
                        left: G2uM ? 'auto' : x2uM(A7uM) + '%',
                        right: G2uM ? x2uM(A7uM) + '%' : 'auto'
                    });
                } else {
                    A7uM = Math.max(A7uM, r7uM[0]);
                    N7uM.css({
                        width: x2uM(A7uM) - x2uM(r7uM[0]) + '%'
                    });
                }
            } else if (T7uM || !D7uM) {
                Q7uM.css({
                    left: G2uM ? 'auto' : (c7uM || x2uM(A7uM)) + '%',
                    right: G2uM ? (c7uM || x2uM(A7uM)) + '%' : 'auto'
                });
            } else {
                N7uM.css('width', (c7uM || x2uM(A7uM)) + '%');
            }
            if (h7uM) {
                W7uM.eq(b7uM).html(A7uM);
            }
            if (!T7uM && (r7uM[b7uM] != A7uM || f7uM)) {
                j2uM._display(A7uM);
            }
        };
        j2uM._readValue = function(s7uM) {
            return +s7uM.val();
        };
        j2uM._fillValue = function(i7uM, k7uM, v7uM) {
            L2uM.eq(k7uM).val(i7uM);
            if (v7uM) {
                L2uM.eq(k7uM).trigger('change');
            }
        };
        j2uM.___init = function(X7uM) {
            var R7uM, H7uM;
            if (M7uM) {
                M7uM.removeClass('mbsc-slider-has-tooltip');
                if (p7uM != 1) {
                    u9HM('.mbsc-slider-step', t7uM).remove();
                }
            }
            M7uM = j2uM._$parent;
            t7uM = j2uM._$track;
            N7uM = j2uM._$progress;
            L2uM = M7uM.find('input');
            S2uM = j2uM.settings;
            d7uM = j2uM._min;
            Z7uM = j2uM._max;
            j2uM._step = p7uM = X7uM.step === undefined ? +L2uM.attr('step') || S2uM.step : X7uM.step;
            j2uM._live = q7uM('data-live', S2uM.live);
            h7uM = q7uM('data-tooltip', S2uM.tooltip);
            D7uM = q7uM('data-highlight', S2uM.highlight) && L2uM.length < 3;
            Y7uM = D7uM && L2uM.length == 2;
            G2uM = S2uM.rtl;
            if (h7uM) {
                M7uM.addClass('mbsc-slider-has-tooltip');
            }
            if (p7uM != 1) {
                H7uM = (Z7uM - d7uM) / p7uM;
                for (R7uM = 0; R7uM <= H7uM; ++R7uM) {
                    t7uM.append('<span class="mbsc-slider-step" style="' + (G2uM ? 'right' : 'left') + ':' + 100 / H7uM * R7uM + '%"></span>');
                }
            }
            L2uM.each(function(w7uM) {
                if (this.type == 'range') {
                    u9HM(this).attr('min', d7uM).attr('max', Z7uM).attr('step', p7uM);
                }(D7uM ? N7uM : t7uM).append('<span class="mbsc-slider-handle-cont' + (Y7uM && !w7uM ? ' mbsc-slider-handle-left' : '') + '">' + '<span tabindex="0" class="mbsc-slider-handle" aria-valuemin="' + d7uM + '" aria-valuemax="' + Z7uM + '" data-index="' + w7uM + '"></span>' + (h7uM ? '<span class="mbsc-slider-tooltip"></span>' : '') + '</span>');
            });
            W7uM = M7uM.find('.mbsc-slider-tooltip');
        };
        if (!E7uM) {
            j2uM.init(o7uM);
        }
    };
    j66M.prototype = {
        _class: 'progress',
        _css: 'mbsc-progress mbsc-slider',
        _hasTheme: true,
        _hasLang: true,
        _defaults: {
            changeEvent: 'change',
            stopProp: true,
            min: 0,
            max: 100,
            step: 1,
            live: true,
            highlight: true,
            round: true,
            returnAffix: true
        }
    };
    U9HM.classes.Slider = j66M;
    U9HM.presetShort('slider', 'Slider');
    var k76M = 0;
    var s76M = U9HM.classes;
    var Q26M = U9HM.instances;
    var k66M = function B7uM(u7uM, J7uM) {
        function U7uM() {
            g7uM.removeClass('mbsc-no-touch');
        }
        var e7uM, j7uM, O7uM = '',
            g7uM = u9HM(u7uM),
            F7uM = {},
            I7uM = this;
        s76M.Base.call(this, u7uM, J7uM, true);
        I7uM.refresh = function(x7uM) {
            u9HM('input,select,textarea,progress,button', g7uM).each(function() {
                var L7uM = this,
                    G7uM = u9HM(L7uM),
                    S7uM = g76M(G7uM);
                if (G7uM.attr('data-enhance') != 'false') {
                    if (G7uM.hasClass('mbsc-control')) {
                        if (F7uM[L7uM.id]) {
                            F7uM[L7uM.id].option({
                                theme: e7uM.theme,
                                lang: e7uM.lang,
                                rtl: e7uM.rtl,
                                onText: e7uM.onText,
                                offText: e7uM.offText,
                                stopProp: e7uM.stopProp
                            });
                        }
                    } else {
                        if (!L7uM.id) {
                            L7uM.id = 'mbsc-form-control-' + ++k76M;
                        }
                        switch (S7uM) {
                            case 'button':
                            case 'submit':
                                F7uM[L7uM.id] = new Z26M(L7uM, {
                                    theme: e7uM.theme,
                                    tap: e7uM.tap
                                });
                                break;
                            case 'switch':
                                F7uM[L7uM.id] = new K36M(L7uM, {
                                    theme: e7uM.theme,
                                    lang: e7uM.lang,
                                    rtl: e7uM.rtl,
                                    onText: e7uM.onText,
                                    offText: e7uM.offText,
                                    stopProp: e7uM.stopProp
                                });
                                break;
                            case 'checkbox':
                                F7uM[L7uM.id] = new p26M(L7uM, {
                                    tap: e7uM.tap
                                });
                                break;
                            case 'range':
                                if (!u9HM(L7uM).parent().hasClass('mbsc-slider')) {
                                    F7uM[L7uM.id] = new j66M(L7uM, {
                                        theme: e7uM.theme,
                                        lang: e7uM.lang,
                                        rtl: e7uM.rtl,
                                        stopProp: e7uM.stopProp
                                    });
                                }
                                break;
                            case 'progress':
                                F7uM[L7uM.id] = new x66M(L7uM, {
                                    theme: e7uM.theme,
                                    lang: e7uM.lang,
                                    rtl: e7uM.rtl
                                });
                                break;
                            case 'radio':
                                F7uM[L7uM.id] = new N26M(L7uM, {
                                    tap: e7uM.tap
                                });
                                break;
                            case 'select':
                            case 'select-one':
                            case 'select-multiple':
                                F7uM[L7uM.id] = new D26M(L7uM, {
                                    tap: e7uM.tap
                                });
                                break;
                            case 'textarea':
                                F7uM[L7uM.id] = new n26M(L7uM, {
                                    tap: e7uM.tap
                                });
                                break;
                            case 'segmented':
                                F7uM[L7uM.id] = new C26M(L7uM, {
                                    theme: e7uM.theme,
                                    tap: e7uM.tap
                                });
                                break;
                            case 'stepper':
                                F7uM[L7uM.id] = new A36M(L7uM, {
                                    theme: e7uM.theme
                                });
                                break;
                            case 'hidden':
                                return;
                            default:
                                F7uM[L7uM.id] = new X36M(L7uM, {
                                    tap: e7uM.tap
                                });
                                break;
                        }
                    }
                }
            });
            if (!x7uM) {
                e76M();
            }
        };
        I7uM._init = function() {
            if (!U9HM.themes.form[e7uM.theme]) {
                e7uM.theme = 'mobiscroll';
            }
            if (!g7uM.hasClass('mbsc-form')) {
                g7uM.on('touchstart', U7uM).show();
            }
            if (O7uM) {
                g7uM.removeClass(O7uM);
            }
            O7uM = 'mbsc-form mbsc-no-touch mbsc-' + e7uM.theme + (e7uM.baseTheme ? ' mbsc-' + e7uM.baseTheme : '') + (e7uM.rtl ? ' mbsc-rtl' : ' mbsc-ltr');
            g7uM.addClass(O7uM);
            I7uM.refresh();
        };
        I7uM._destroy = function() {
            g7uM.removeClass(O7uM).off('touchstart', U7uM);
            for (var d1uM in F7uM) {
                F7uM[d1uM].destroy();
            }
        };
        e7uM = I7uM.settings;
        j7uM = I7uM.trigger;
        I7uM.init(J7uM);
    };
    k66M.prototype = {
        _hasDef: true,
        _hasTheme: true,
        _hasLang: true,
        _class: 'form',
        _defaults: {
            tap: true,
            stopProp: true,
            lang: 'en'
        }
    };
    U9HM.themes.form.mobiscroll = {};
    U9HM.classes.Form = k66M;
    U9HM.presetShort('form', 'Form');
    if (Y66M) {
        u9HM(function() {
            var M1uM = '[mbsc-enhance],[mbsc-form]';
            u9HM(M1uM).each(function() {
                new k66M(this);
            });
            u9HM(document).on('mbsc-enhance', function(Z1uM, p1uM) {
                if (u9HM(Z1uM.target).is(M1uM)) {
                    new k66M(Z1uM.target, p1uM);
                } else {
                    u9HM(M1uM, Z1uM.target).each(function() {
                        new k66M(this, p1uM);
                    });
                }
            });
            u9HM(document).on('mbsc-refresh', function(D1uM) {
                var N1uM;
                if (u9HM(D1uM.target).is(M1uM)) {
                    N1uM = Q26M[D1uM.target.id];
                    if (N1uM) {
                        N1uM.refresh();
                    }
                } else {
                    u9HM(M1uM, D1uM.target).each(function() {
                        N1uM = Q26M[this.id];
                        if (N1uM) {
                            N1uM.refresh();
                        }
                    });
                }
            });
        });
    }
    var d66M = this && this.__extends || function() {
        var t1uM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(h1uM, q1uM) {
            h1uM.__proto__ = q1uM;
        } || function(n1uM, Y1uM) {
            for (var o1uM in Y1uM) {
                if (Y1uM.hasOwnProperty(o1uM)) n1uM[o1uM] = Y1uM[o1uM];
            }
        };
        return function(W1uM, C1uM) {
            function m1uM() {
                this.constructor = W1uM;
            }
            t1uM(W1uM, C1uM);
            W1uM.prototype = C1uM === null ? Object.create(C1uM) : (m1uM.prototype = C1uM.prototype, new m1uM());
        };
    }();
    var p66M = function() {
        function y1uM() {}
        Object.defineProperty(y1uM.prototype, "options", {
            get: function a1uM() {
                return this._options;
            },
            set: function E1uM(P1uM) {
                this._options = P1uM;
            },
            enumerable: true,
            configurable: true
        });
        y1uM.decorators = [{
            type: J9HM.Injectable
        }];
        y1uM.ctorParameters = function() {
            return [];
        };
        return y1uM;
    }();
    var v26M = function(V1uM) {
        function K1uM(l1uM, A1uM) {
            var z1uM = V1uM.call(this, l1uM) || this;
            z1uM._formService = A1uM;
            return z1uM;
        }
        d66M(K1uM, V1uM);
        K1uM.prototype.ngOnInit = function() {
            this._formService.options = this.options;
        };
        K1uM.prototype.ngAfterViewInit = function() {
            V1uM.prototype.ngAfterViewInit.call(this);
            var r1uM = j9HM({}, this.options);
            this._instance = new k66M(this.rootElem.nativeElement, r1uM);
        };
        K1uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-form',
                template: "<div #rootElement><ng-content></ng-content></div>",
                providers: [p66M],
                exportAs: 'mobiscroll'
            }]
        }];
        K1uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: p66M
            }];
        };
        K1uM.propDecorators = {
            'options': [{
                type: J9HM.Input,
                args: ['options']
            }],
            'rootElem': [{
                type: J9HM.ViewChild,
                args: ['rootElement']
            }]
        };
        return K1uM;
    }(E66M);
    var J66M = function(c1uM) {
        function b1uM(f1uM, Q1uM) {
            var T1uM = c1uM.call(this, f1uM) || this;
            T1uM._formService = Q1uM;
            T1uM.disabled = false;
            return T1uM;
        }
        d66M(b1uM, c1uM);
        b1uM.prototype.ngOnInit = function() {
            this._inheritedOptions = this._formService.options;
        };
        b1uM.propDecorators = {
            'options': [{
                type: J9HM.Input
            }],
            'disabled': [{
                type: J9HM.Input
            }],
            'name': [{
                type: J9HM.Input
            }],
            '_initElem': [{
                type: J9HM.ViewChild,
                args: ['initElement']
            }]
        };
        return b1uM;
    }(E66M);
    var u66M = function(k1uM) {
        function s1uM(H1uM, X1uM, v1uM, R1uM) {
            var i1uM = k1uM.call(this, H1uM, X1uM) || this;
            i1uM._control = v1uM;
            i1uM._noOverride = R1uM;
            i1uM.onChange = function() {};
            i1uM.onTouch = function() {};
            i1uM.errorMessage = '';
            i1uM.valueChangeEmitter = new J9HM.EventEmitter();
            if (v1uM && !R1uM) {
                v1uM.valueAccessor = i1uM;
            }
            return i1uM;
        }
        d66M(s1uM, k1uM);
        Object.defineProperty(s1uM.prototype, "innerValue", {
            get: function w1uM() {
                return this._value;
            },
            set: function B1uM(e1uM) {
                this._value = e1uM;
                this.onChange(e1uM);
                this.valueChangeEmitter.emit(e1uM);
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(s1uM.prototype, "value", {
            set: function F1uM(I1uM) {
                this._value = I1uM;
            },
            enumerable: true,
            configurable: true
        });
        s1uM.prototype.registerOnChange = function(g1uM) {
            this.onChange = g1uM;
        };
        s1uM.prototype.registerOnTouched = function(O1uM) {
            this.onTouch = O1uM;
        };
        s1uM.prototype.writeValue = function(u1uM) {
            this._value = u1uM;
        };
        s1uM.propDecorators = {
            'value': [{
                type: J9HM.Input
            }],
            'error': [{
                type: J9HM.Input
            }],
            'errorMessage': [{
                type: J9HM.Input
            }],
            'valueChangeEmitter': [{
                type: J9HM.Output,
                args: ['valueChange']
            }]
        };
        return s1uM;
    }(J66M);
    var n46M = function(U1uM) {
        function J1uM(x1uM, L1uM, G1uM, S1uM) {
            var j1uM = U1uM.call(this, x1uM, L1uM, G1uM, S1uM) || this;
            j1uM.type = 'text';
            j1uM.placeholder = '';
            return j1uM;
        }
        d66M(J1uM, U1uM);
        J1uM.propDecorators = {
            'icon': [{
                type: J9HM.Input
            }],
            'iconAlign': [{
                type: J9HM.Input,
                args: ['icon-align']
            }],
            'type': [{
                type: J9HM.Input
            }],
            'passwordToggle': [{
                type: J9HM.Input,
                args: ['password-toggle']
            }],
            'iconShow': [{
                type: J9HM.Input,
                args: ['icon-show']
            }],
            'iconHide': [{
                type: J9HM.Input,
                args: ['icon-hide']
            }],
            'placeholder': [{
                type: J9HM.Input
            }]
        };
        return J1uM;
    }(u66M);
    var w26M = function(M8uM) {
        function d8uM(N8uM, D8uM, p8uM, t8uM) {
            var Z8uM = M8uM.call(this, N8uM, D8uM, t8uM, p8uM.isControlSet) || this;
            Z8uM._inputService = p8uM;
            p8uM.input = Z8uM;
            return Z8uM;
        }
        d66M(d8uM, M8uM);
        d8uM.prototype.ngAfterViewInit = function() {
            M8uM.prototype.ngAfterViewInit.call(this);
            var h8uM = j9HM({}, this._inheritedOptions, this.options);
            this._instance = new X36M(this._initElem.nativeElement, h8uM);
        };
        d8uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-input',
                template: "\n        <label [class.mbsc-err]=\"error\">\n            <ng-content></ng-content>\n            <span class=\"mbsc-input-wrap\">\n                <input #initElement [type]=\"type\" [placeholder]=\"placeholder\" [(ngModel)]=\"innerValue\" (blur)=\"onTouch($event)\"\n                    [attr.name]=\"name\"\n                    [attr.data-icon]=\"icon ? icon : null\"\n                    [attr.data-icon-align]=\"iconAlign ? iconAlign : null\"\n                    [attr.data-password-toggle]=\"passwordToggle ? 'true': null\"\n                    [attr.data-icon-show]=\"iconShow ? iconShow : null\"\n                    [attr.data-icon-hide]=\"iconHide ? iconHide : null\"\n                    [disabled]=\"disabled\" />\n                <span *ngIf=\"error && errorMessage\" class=\"mbsc-err-msg\">{{errorMessage}}</span>\n            </span>\n        </label>\n    ",
                providers: [G9HM]
            }]
        }];
        d8uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: p66M
            }, {
                type: G9HM
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        return d8uM;
    }(n46M);
    var B26M = function(o8uM) {
        function q8uM(C8uM, W8uM, n8uM, m8uM) {
            var Y8uM = o8uM.call(this, C8uM, W8uM, m8uM, n8uM.isControlSet) || this;
            Y8uM._inputService = n8uM;
            n8uM.input = Y8uM;
            return Y8uM;
        }
        d66M(q8uM, o8uM);
        q8uM.prototype.ngAfterViewInit = function() {
            o8uM.prototype.ngAfterViewInit.call(this);
            var y8uM = j9HM({}, this._inheritedOptions, this.options);
            this._instance = new n26M(this._initElem.nativeElement, y8uM);
        };
        q8uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-textarea',
                template: "\n        <label [class.mbsc-err]=\"error\">\n            <ng-content></ng-content>\n            <span class=\"mbsc-input-wrap\">\n                <textarea #initElement [placeholder]=\"placeholder\" [(ngModel)]=\"innerValue\" (blur)=\"onTouch($event)\"\n                    [attr.name]=\"name\"\n                    [attr.data-icon]=\"icon ? icon : null\"\n                    [attr.data-icon-align]=\"iconAlign ? iconAlign : null\"\n                    [disabled]=\"disabled\"></textarea>\n                <span *ngIf=\"error && errorMessage\" class=\"mbsc-err-msg\">{{errorMessage}}</span>\n            </span>\n        </label>\n    ",
                providers: [G9HM]
            }]
        }];
        q8uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: p66M
            }, {
                type: G9HM
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        return q8uM;
    }(n46M);
    var e26M = function(E8uM) {
        function a8uM(V8uM, z8uM, K8uM, l8uM) {
            var P8uM = E8uM.call(this, V8uM, z8uM, l8uM, K8uM.isControlSet) || this;
            P8uM._inputService = K8uM;
            K8uM.input = P8uM;
            return P8uM;
        }
        d66M(a8uM, E8uM);
        a8uM.prototype.ngOnInit = function() {
            E8uM.prototype.ngOnInit.call(this);
        };
        a8uM.prototype.ngAfterViewInit = function() {
            E8uM.prototype.ngAfterViewInit.call(this);
            var A8uM = j9HM({}, this._inheritedOptions, this.options);
            this._instance = new D26M(this._initElem.nativeElement, A8uM);
            var r8uM = this;
            setTimeout(function() {
                r8uM._instance._setText();
            });
        };
        a8uM.prototype.writeValue = function(c8uM) {
            this._value = c8uM;
            if (this._instance) {
                var b8uM = this;
                setTimeout(function() {
                    b8uM._instance._setText();
                });
            }
        };
        a8uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-dropdown',
                template: "\n        <label [class.mbsc-err]=\"error\">\n            {{label}}\n            <span class=\"mbsc-input-wrap\">\n                <select #initElement\n                    [(ngModel)]=\"innerValue\" \n                    [attr.name]=\"name\"\n                    [attr.data-icon]=\"icon ? icon : null\"\n                    [attr.data-icon-align]=\"iconAlign ? iconAlign : null\"\n                    [disabled]=\"disabled\"\n                    (blur)=\"onTouch($event)\">\n                    <ng-content></ng-content>\n                </select>\n                <span *ngIf=\"error && errorMessage\" class=\"mbsc-err-msg\">{{errorMessage}}</span>\n            </span>\n        </label>\n    ",
                providers: [G9HM]
            }]
        }];
        a8uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: p66M
            }, {
                type: G9HM
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        a8uM.propDecorators = {
            'label': [{
                type: J9HM.Input
            }],
            'icon': [{
                type: J9HM.Input
            }],
            'iconAlign': [{
                type: J9HM.Input,
                args: ['icon-align']
            }]
        };
        return a8uM;
    }(u66M);
    var F26M = function(f8uM) {
        function T8uM(s8uM, k8uM) {
            var Q8uM = f8uM.call(this, s8uM, k8uM) || this;
            Q8uM._flat = false;
            Q8uM._block = false;
            Q8uM.type = 'button';
            return Q8uM;
        }
        d66M(T8uM, f8uM);
        Object.defineProperty(T8uM.prototype, "flat", {
            set: function i8uM(v8uM) {
                this._flat = typeof v8uM === 'string' && (v8uM === 'true' || v8uM === '') || !!v8uM;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(T8uM.prototype, "block", {
            set: function R8uM(H8uM) {
                this._block = typeof H8uM === 'string' && (H8uM === 'true' || H8uM === '') || !!H8uM;
            },
            enumerable: true,
            configurable: true
        });
        T8uM.prototype.ngAfterViewInit = function() {
            f8uM.prototype.ngAfterViewInit.call(this);
            var X8uM = j9HM({}, this._inheritedOptions, this.options);
            this._instance = new Z26M(this._initElem.nativeElement, X8uM);
        };
        T8uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-button',
                template: "\n        <button #initElement \n            [type]=\"type\"\n            [ngClass]=\"{ 'mbsc-btn-flat': _flat, 'mbsc-btn-block': _block }\"\n            [attr.name]=\"name\"\n            [attr.data-icon]=\"icon ? icon : null\"\n            [disabled]=\"disabled\">\n            <ng-content></ng-content>\n        </button>\n    "
            }]
        }];
        T8uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: p66M
            }];
        };
        T8uM.propDecorators = {
            'type': [{
                type: J9HM.Input
            }],
            'icon': [{
                type: J9HM.Input
            }],
            'flat': [{
                type: J9HM.Input
            }],
            'block': [{
                type: J9HM.Input
            }]
        };
        return T8uM;
    }(J66M);
    var I26M = function(B8uM) {
        function w8uM(e8uM, F8uM, I8uM) {
            return B8uM.call(this, e8uM, F8uM, I8uM, false) || this;
        }
        d66M(w8uM, B8uM);
        w8uM.prototype.ngAfterViewInit = function() {
            B8uM.prototype.ngAfterViewInit.call(this);
            var g8uM = j9HM({}, this._inheritedOptions, this.options);
            this._instance = new p26M(this._initElem.nativeElement, g8uM);
        };
        w8uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-checkbox',
                template: "\n        <label>\n            <input #initElement \n                type=\"checkbox\"\n                [attr.name]=\"name\"\n                [disabled]=\"disabled\"\n                [(ngModel)]=\"innerValue\"\n                (blur)=\"onTouch($event)\" />\n            <ng-content></ng-content>\n        </label>\n    "
            }]
        }];
        w8uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: p66M
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        return w8uM;
    }(u66M);
    var g26M = function(u8uM) {
        function O8uM(U8uM, j8uM, x8uM, L8uM) {
            var J8uM = u8uM.call(this, U8uM, j8uM, L8uM, null) || this;
            J8uM._formService = x8uM;
            J8uM.disabled = false;
            J8uM.onChangeEmitter = new J9HM.EventEmitter();
            return J8uM;
        }
        d66M(O8uM, u8uM);
        Object.defineProperty(O8uM.prototype, "value", {
            set: function G8uM(S8uM) {
                this.setNewValueProxy(S8uM);
            },
            enumerable: true,
            configurable: true
        });
        O8uM.prototype.setNewValue = function(d0uM) {
            if (this._instance) {
                if (this._instance.getVal() !== d0uM) {
                    this._instance.setVal(d0uM, true, false);
                }
            }
        };
        O8uM.prototype.ngOnInit = function() {
            this._inheritedOptions = this._formService.options;
        };
        O8uM.prototype.ngAfterViewInit = function() {
            u8uM.prototype.ngAfterViewInit.call(this);
            var M0uM = j9HM({}, this._inheritedOptions, this.options);
            this._instance = new K36M(this._initElem.nativeElement, M0uM);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        O8uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-switch',
                template: "\n        <label>\n            <ng-content></ng-content>\n            <input #initElement \n                type=\"checkbox\"\n                data-role=\"switch\"\n                [attr.name]=\"name\"\n                [disabled]=\"disabled\"\n                (blur)=\"onTouch($event)\" />\n        </label>\n    ",
                exportAs: 'mobiscroll'
            }]
        }];
        O8uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: p66M
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        O8uM.propDecorators = {
            'disabled': [{
                type: J9HM.Input
            }],
            'name': [{
                type: J9HM.Input
            }],
            'value': [{
                type: J9HM.Input,
                args: ['value']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['valueChange']
            }],
            '_initElem': [{
                type: J9HM.ViewChild,
                args: ['initElement']
            }]
        };
        return O8uM;
    }(S9HM);
    var O26M = function(p0uM) {
        function Z0uM(D0uM, t0uM, h0uM, q0uM) {
            var N0uM = p0uM.call(this, D0uM, t0uM, q0uM, null) || this;
            N0uM._formService = h0uM;
            N0uM.min = undefined;
            N0uM.max = undefined;
            N0uM.step = undefined;
            N0uM.val = undefined;
            N0uM.disabled = false;
            N0uM.onChangeEmitter = new J9HM.EventEmitter();
            return N0uM;
        }
        d66M(Z0uM, p0uM);
        Object.defineProperty(Z0uM.prototype, "value", {
            set: function o0uM(Y0uM) {
                this.setNewValueProxy(Y0uM);
            },
            enumerable: true,
            configurable: true
        });
        Z0uM.prototype.setNewValue = function(n0uM) {
            if (this._instance && this._instance.getVal() !== n0uM) {
                this._instance.setVal(n0uM, true, false);
            }
        };
        Z0uM.prototype.ngOnInit = function() {
            this._inheritedOptions = this._formService.options;
        };
        Z0uM.prototype.ngAfterViewInit = function() {
            p0uM.prototype.ngAfterViewInit.call(this);
            var C0uM = j9HM({}, this._inheritedOptions, this.options);
            this._instance = new A36M(this._initElem.nativeElement, C0uM);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        Z0uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-stepper',
                template: "\n        <label>\n            <ng-content></ng-content>\n            <input #initElement\n                data-role=\"stepper\"\n                [attr.name]=\"name\"\n                [attr.min]=\"min !== undefined ? min : null\"\n                [attr.max]=\"max !== undefined ? max : null\"\n                [attr.step]=\"step !== undefined ? step : null\"\n                [attr.data-val]=\"val ? val : null\"\n                [disabled]=\"disabled\" />\n        </label>\n    ",
                exportAs: 'mobiscroll'
            }]
        }];
        Z0uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: p66M
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        Z0uM.propDecorators = {
            'value': [{
                type: J9HM.Input
            }],
            'name': [{
                type: J9HM.Input
            }],
            'min': [{
                type: J9HM.Input
            }],
            'max': [{
                type: J9HM.Input
            }],
            'step': [{
                type: J9HM.Input
            }],
            'val': [{
                type: J9HM.Input
            }],
            'disabled': [{
                type: J9HM.Input
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['valueChange']
            }],
            '_initElem': [{
                type: J9HM.ViewChild,
                args: ['initElement']
            }]
        };
        return Z0uM;
    }(S9HM);
    var u26M = function(m0uM) {
        function W0uM(a0uM, E0uM, P0uM, K0uM) {
            var y0uM = m0uM.call(this, a0uM, E0uM, K0uM, null) || this;
            y0uM._formService = P0uM;
            y0uM.max = undefined;
            y0uM.icon = undefined;
            y0uM.iconAlign = undefined;
            y0uM.val = undefined;
            y0uM.disabled = false;
            return y0uM;
        }
        d66M(W0uM, m0uM);
        Object.defineProperty(W0uM.prototype, "value", {
            set: function V0uM(z0uM) {
                this.setNewValueProxy(z0uM);
            },
            enumerable: true,
            configurable: true
        });
        W0uM.prototype.setNewValue = function(l0uM) {
            if (this._instance && this._instance.getVal() !== l0uM) {
                this._instance.setVal(l0uM, true, false);
            }
        };
        W0uM.prototype.ngOnInit = function() {
            this._inheritedOptions = this._formService.options;
        };
        W0uM.prototype.ngAfterViewInit = function() {
            m0uM.prototype.ngAfterViewInit.call(this);
            var A0uM = j9HM({}, this._inheritedOptions, this.options);
            this._instance = new x66M(this._initElem.nativeElement, A0uM);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        W0uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-progress',
                template: "\n        <label>\n            <ng-content></ng-content>\n            <progress #initElement\n                [attr.data-step-labels]=\"stepLabels\"\n                [attr.data-icon]=\"icon ? icon : null\"\n                [attr.data-icon-align]=\"iconAlign ? iconAlign : null\"\n                [attr.max]=\"max !== undefined ? max : null\"\n                [attr.data-val]=\"val !== undefined ? val : null\"\n            >\n            </progress>\n        </label>\n    ",
                exportAs: 'mobiscroll'
            }]
        }];
        W0uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: p66M
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        W0uM.propDecorators = {
            'value': [{
                type: J9HM.Input
            }],
            'max': [{
                type: J9HM.Input
            }],
            'icon': [{
                type: J9HM.Input
            }],
            'iconAlign': [{
                type: J9HM.Input,
                args: ['icon-align']
            }],
            'val': [{
                type: J9HM.Input
            }],
            'disabled': [{
                type: J9HM.Input
            }],
            'stepLabels': [{
                type: J9HM.Input,
                args: ['step-labels']
            }],
            '_initElem': [{
                type: J9HM.ViewChild,
                args: ['initElement']
            }]
        };
        return W0uM;
    }(S9HM);
    var Q76M = 1;
    var z66M = function() {
        function r0uM() {
            this._valueSubject = new P46M.Subject();
        }
        Object.defineProperty(r0uM.prototype, "name", {
            get: function b0uM() {
                if (!this._name) {
                    this._name = 'mbsc-radio-group-' + Q76M++;
                }
                return this._name;
            },
            set: function c0uM(T0uM) {
                this._name = T0uM;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(r0uM.prototype, "multiSelect", {
            get: function f0uM() {
                return this._multiSelect;
            },
            set: function Q0uM(s0uM) {
                this._multiSelect = s0uM;
            },
            enumerable: true,
            configurable: true
        });
        r0uM.prototype.onValueChanged = function() {
            return this._valueSubject.asObservable();
        };
        r0uM.prototype.changeValue = function(k0uM) {
            this._valueSubject.next(k0uM);
        };
        r0uM.decorators = [{
            type: J9HM.Injectable
        }];
        r0uM.ctorParameters = function() {
            return [];
        };
        return r0uM;
    }();
    var m46M = function(v0uM) {
        function i0uM(H0uM, X0uM, w0uM, B0uM) {
            var R0uM = v0uM.call(this, H0uM, X0uM, B0uM, null) || this;
            R0uM._radioService = w0uM;
            R0uM._radioService.onValueChanged().subscribe(function(e0uM) {
                R0uM.innerValue = e0uM;
                R0uM.onTouch();
            });
            return R0uM;
        }
        d66M(i0uM, v0uM);
        i0uM.prototype.ngOnInit = function() {
            v0uM.prototype.ngOnInit.call(this);
            if (this.name) {
                this._radioService.name = this.name;
            }
        };
        i0uM.prototype.writeValue = function(F0uM) {
            this._value = F0uM;
            this._radioService.changeValue(F0uM);
        };
        i0uM.propDecorators = {
            'name': [{
                type: J9HM.Input
            }]
        };
        return i0uM;
    }(u66M);
    var x26M = function(g0uM) {
        function I0uM(O0uM, u0uM, J0uM, U0uM) {
            return g0uM.call(this, O0uM, u0uM, J0uM, U0uM) || this;
        }
        d66M(I0uM, g0uM);
        I0uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-radio-group',
                template: "\n        <div>\n            <ng-content></ng-content>\n        </div>\n    ",
                providers: [z66M]
            }]
        }];
        I0uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: p66M
            }, {
                type: z66M
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        return I0uM;
    }(m46M);
    var L26M = function(x0uM) {
        function j0uM(G0uM, S0uM, d5uM) {
            var L0uM = x0uM.call(this, G0uM, S0uM) || this;
            L0uM._radioService = d5uM;
            L0uM._radioService.onValueChanged().subscribe(function(M5uM) {
                L0uM.modelValue = M5uM;
            });
            return L0uM;
        }
        d66M(j0uM, x0uM);
        Object.defineProperty(j0uM.prototype, "checked", {
            get: function Z5uM() {
                return this.value == this.modelValue;
            },
            enumerable: true,
            configurable: true
        });
        j0uM.prototype.clicked = function(p5uM) {
            this._radioService.changeValue(this.value);
        };
        j0uM.prototype.ngAfterViewInit = function() {
            x0uM.prototype.ngAfterViewInit.call(this);
            var N5uM = j9HM({}, this._inheritedOptions, this.options);
            this._instance = new N26M(this._initElem.nativeElement, N5uM);
        };
        j0uM.prototype.ngOnInit = function() {
            x0uM.prototype.ngOnInit.call(this);
            this.name = this._radioService.name;
        };
        j0uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-radio',
                template: "\n        <label>\n            <input #initElement \n                type=\"radio\" \n                [attr.name]=\"name\" \n                [attr.value]=\"value\"\n                [value]=\"value\" \n                [checked]=\"checked\"\n                [disabled]=\"disabled\"\n                (click)=\"clicked($event)\" />\n            <ng-content></ng-content>\n        </label>\n    "
            }]
        }];
        j0uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: p66M
            }, {
                type: z66M
            }];
        };
        j0uM.propDecorators = {
            'value': [{
                type: J9HM.Input
            }]
        };
        return j0uM;
    }(J66M);
    var G26M = function(t5uM) {
        function D5uM(q5uM, o5uM, Y5uM, n5uM) {
            var h5uM = t5uM.call(this, q5uM, o5uM, Y5uM, n5uM) || this;
            h5uM.select = 'single';
            return h5uM;
        }
        d66M(D5uM, t5uM);
        Object.defineProperty(D5uM.prototype, "multiSelect", {
            get: function C5uM() {
                return this.select == 'multiple';
            },
            enumerable: true,
            configurable: true
        });
        D5uM.prototype.ngOnInit = function() {
            t5uM.prototype.ngOnInit.call(this);
            this._radioService.multiSelect = this.multiSelect;
        };
        D5uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-segmented-group',
                template: "<div class=\"mbsc-segmented\"><ng-content></ng-content></div>",
                providers: [z66M]
            }]
        }];
        D5uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: p66M
            }, {
                type: z66M
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        D5uM.propDecorators = {
            'select': [{
                type: J9HM.Input
            }]
        };
        return D5uM;
    }(m46M);
    var S26M = function(m5uM) {
        function W5uM(a5uM, E5uM, P5uM) {
            var y5uM = m5uM.call(this, a5uM, E5uM) || this;
            y5uM._radioService = P5uM;
            y5uM.valueChange = new J9HM.EventEmitter();
            y5uM._radioService.onValueChanged().subscribe(function(K5uM) {
                y5uM.modelValue = K5uM;
            });
            return y5uM;
        }
        d66M(W5uM, m5uM);
        Object.defineProperty(W5uM.prototype, "checked", {
            get: function V5uM() {
                if (this.multiSelect) {
                    return this.value;
                } else {
                    return this.value == this.modelValue;
                }
            },
            enumerable: true,
            configurable: true
        });
        W5uM.prototype.clicked = function(z5uM) {
            if (this.multiSelect) {
                this.valueChange.emit(!!!this.value);
            } else {
                this._radioService.changeValue(this.value);
            }
        };
        W5uM.prototype.ngAfterViewInit = function() {
            m5uM.prototype.ngAfterViewInit.call(this);
            var l5uM = j9HM({}, this._inheritedOptions, this.options);
            this._instance = new C26M(this._initElem.nativeElement, l5uM);
        };
        W5uM.prototype.ngOnInit = function() {
            m5uM.prototype.ngOnInit.call(this);
            this.name = this._radioService.name;
            this.multiSelect = this._radioService.multiSelect;
        };
        W5uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-segmented',
                host: {
                    class: 'mbsc-segmented-item'
                },
                template: "\n        <label class=\"mbsc-segmented-item-ready\">\n            <input #initElement \n                data-role=\"segmented\"\n                [type]=\"multiSelect ? 'checkbox' : 'radio'\" \n                [value]=\"value\" \n                [checked]=\"checked\"\n                [disabled]=\"disabled\"\n                [attr.name]=\"name\" \n                [attr.value]=\"value\"\n                [attr.data-icon]=\"icon ? icon : null\"\n                (click)=\"clicked($event)\" />\n            <span class=\"mbsc-segmented-content\">\n                <span *ngIf=\"icon\" class=\"{{'mbsc-ic mbsc-ic-' + icon }}\"></span>\n                <ng-content></ng-content>\n            </span>\n        </label>\n    "
            }]
        }];
        W5uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: p66M
            }, {
                type: z66M
            }];
        };
        W5uM.propDecorators = {
            'icon': [{
                type: J9HM.Input
            }],
            'value': [{
                type: J9HM.Input
            }],
            'valueChange': [{
                type: J9HM.Output
            }]
        };
        return W5uM;
    }(J66M);
    var d76M = function(r5uM) {
        function A5uM(c5uM, T5uM, f5uM, Q5uM) {
            var b5uM = r5uM.call(this, c5uM, f5uM, Q5uM, null) || this;
            b5uM._formService = T5uM;
            b5uM._dummy = undefined;
            b5uM._needsTimeout = false;
            b5uM.disabled = false;
            b5uM.onChangeEmitter = new J9HM.EventEmitter();
            return b5uM;
        }
        d66M(A5uM, r5uM);
        Object.defineProperty(A5uM.prototype, "isMulti", {
            get: function s5uM() {
                return this._lastValue instanceof Array;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(A5uM.prototype, "dummyArray", {
            get: function k5uM() {
                if (!this._dummy || this.isMulti && this._lastValue && this._lastValue.length && this._dummy.length !== this._lastValue.length) {
                    this._dummy = Array(this.isMulti ? this._lastValue.length : 1).fill(0).map(function(v5uM, i5uM) {
                        return i5uM;
                    });
                }
                return this._dummy;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(A5uM.prototype, "value", {
            set: function R5uM(H5uM) {
                this.setNewValueProxy(H5uM);
            },
            enumerable: true,
            configurable: true
        });
        A5uM.prototype.reInitialize = function() {
            this._instance.destroy();
            this.setElement();
            this.handleChange();
            var X5uM = j9HM({}, this._inheritedOptions, this.options);
            this._instance = new j66M(this.inputElements.first.nativeElement, X5uM);
        };
        A5uM.prototype.setNewValue = function(w5uM) {
            var e5uM = this;
            this._lastValue = w5uM;
            if (this._instance) {
                var B5uM = this._instance.getVal();
                if (this.isMulti && (!B5uM || B5uM.length != w5uM.length)) {
                    setTimeout(function() {
                        e5uM.reInitialize();
                        e5uM._instance.setVal(e5uM._lastValue, true, false);
                    });
                } else {
                    var F5uM = this.isMulti && !E36M(B5uM, w5uM) || !this.isMulti && B5uM !== w5uM;
                    if (F5uM) {
                        this._instance.setVal(w5uM, true, false);
                    }
                }
            }
        };
        A5uM.prototype.ngOnInit = function() {
            this._inheritedOptions = this._formService.options;
        };
        A5uM.prototype.ngAfterViewInit = function() {
            r5uM.prototype.ngAfterViewInit.call(this);
            var I5uM = j9HM({}, this._inheritedOptions, this.options);
            this._instance = new j66M(this.inputElements.first.nativeElement, I5uM);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        A5uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-slider',
                template: "\n        <label>\n            <ng-content></ng-content>\n            <input #inputElements *ngFor=\"let v of dummyArray\" \n                type=\"range\"\n                [disabled]=\"disabled\"\n                [attr.data-step-labels]=\"stepLabels\"\n                [attr.data-template]=\"valueTemplate\"\n                [attr.data-tooltip]=\"tooltip ? 'true' : null\"\n                [attr.data-highlight]=\"highlight\"\n                [attr.data-live]=\"live\"\n                [attr.data-icon]=\"icon ? icon : null\"\n                [attr.data-val]=\"val ? val : null\"\n                [attr.name]=\"name\"\n                [attr.max]=\"max !== undefined ? max : null\"\n                [attr.min]=\"min !== undefined ? min : null\"\n                [attr.step]=\"step !== undefined ? step : null\"\n                (blur)=\"onTouch($event)\" />\n        </label>\n    ",
                exportAs: 'mobiscroll'
            }]
        }];
        A5uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: p66M
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        A5uM.propDecorators = {
            'tooltip': [{
                type: J9HM.Input
            }],
            'highlight': [{
                type: J9HM.Input
            }],
            'live': [{
                type: J9HM.Input
            }],
            'valueTemplate': [{
                type: J9HM.Input,
                args: ['value-template']
            }],
            'icon': [{
                type: J9HM.Input
            }],
            'val': [{
                type: J9HM.Input
            }],
            'max': [{
                type: J9HM.Input
            }],
            'min': [{
                type: J9HM.Input
            }],
            'step': [{
                type: J9HM.Input
            }],
            'disabled': [{
                type: J9HM.Input
            }],
            'stepLabels': [{
                type: J9HM.Input,
                args: ['step-labels']
            }],
            'value': [{
                type: J9HM.Input,
                args: ['value']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['valueChange']
            }],
            'inputElements': [{
                type: J9HM.ViewChildren,
                args: ['inputElements']
            }]
        };
        return A5uM;
    }(S9HM);
    var T76M = this && this.__extends || function() {
        var g5uM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(O5uM, u5uM) {
            O5uM.__proto__ = u5uM;
        } || function(j5uM, U5uM) {
            for (var J5uM in U5uM) {
                if (U5uM.hasOwnProperty(J5uM)) j5uM[J5uM] = U5uM[J5uM];
            }
        };
        return function(L5uM, x5uM) {
            function G5uM() {
                this.constructor = L5uM;
            }
            g5uM(L5uM, x5uM);
            L5uM.prototype = x5uM === null ? Object.create(x5uM) : (G5uM.prototype = x5uM.prototype, new G5uM());
        };
    }();
    var Z76M = function(d9uM) {
        function S5uM(M9uM) {
            return d9uM.call(this, M9uM) || this;
        }
        T76M(S5uM, d9uM);
        S5uM.prototype.ngAfterViewInit = function() {
            d9uM.prototype.ngAfterViewInit.call(this);
            var Z9uM = j9HM({}, this.options);
            this._instance = new A46M(this.initElem.nativeElement, Z9uM);
        };
        S5uM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-page',
                template: '<div #initElement><ng-content></ng-content></div>'
            }]
        }];
        S5uM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }];
        };
        S5uM.propDecorators = {
            'options': [{
                type: J9HM.Input
            }],
            'initElem': [{
                type: J9HM.ViewChild,
                args: ['initElement']
            }]
        };
        return S5uM;
    }(E66M);
    var b76M = {
        invalid: [],
        showInput: true,
        inputClass: ''
    };
    U9HM.presets.scroller.list = function(N9uM) {
        function i9uM(H9uM, X9uM, w9uM) {
            var v9uM = 0,
                R9uM = [];
            while (v9uM < H9uM) {
                R9uM[v9uM] = k9uM(w9uM, v9uM, X9uM);
                v9uM++;
            }
            return R9uM;
        }

        function k9uM(O9uM, u9uM, J9uM) {
            var B9uM = 0,
                F9uM, e9uM = J9uM,
                I9uM = [];
            while (B9uM < u9uM) {
                var g9uM = O9uM[B9uM];
                for (F9uM in e9uM) {
                    if (e9uM[F9uM].key == g9uM) {
                        e9uM = e9uM[F9uM].children;
                        break;
                    }
                }
                B9uM++;
            }
            B9uM = 0;
            while (B9uM < e9uM.length) {
                if (e9uM[B9uM].invalid) {
                    I9uM.push(e9uM[B9uM].key);
                }
                B9uM++;
            }
            return I9uM;
        }

        function Q9uM(j9uM, x9uM) {
            var U9uM = [];
            while (j9uM) {
                U9uM[--j9uM] = true;
            }
            U9uM[x9uM] = false;
            return U9uM;
        }

        function f9uM(S9uM) {
            var G9uM = [],
                L9uM;
            for (L9uM = 0; L9uM < S9uM; L9uM++) {
                G9uM[L9uM] = p9uM.labels && p9uM.labels[L9uM] ? p9uM.labels[L9uM] : L9uM;
            }
            return G9uM;
        }

        function V9uM(h65M, q65M, D65M) {
            var d65M = 0,
                M65M, t65M, N65M, p65M = [
                    []
                ],
                Z65M = q9uM;
            if (q65M) {
                for (M65M = 0; M65M < q65M; M65M++) {
                    if (W9uM) {
                        p65M[0][M65M] = {};
                    } else {
                        p65M[M65M] = [{}];
                    }
                }
            }
            while (d65M < h65M.length) {
                if (W9uM) {
                    p65M[0][d65M] = b9uM(Z65M, E9uM[d65M]);
                } else {
                    p65M[d65M] = [b9uM(Z65M, E9uM[d65M])];
                }
                M65M = 0;
                N65M = undefined;
                while (M65M < Z65M.length && N65M === undefined) {
                    if (Z65M[M65M].key == h65M[d65M] && (D65M !== undefined && d65M <= D65M || D65M === undefined)) {
                        N65M = M65M;
                    }
                    M65M++;
                }
                if (N65M !== undefined && Z65M[N65M].children) {
                    d65M++;
                    Z65M = Z65M[N65M].children;
                } else if ((t65M = Y9uM(Z65M)) && t65M.children) {
                    d65M++;
                    Z65M = t65M.children;
                } else {
                    return p65M;
                }
            }
            return p65M;
        }

        function Y9uM(Y65M, C65M) {
            if (!Y65M) {
                return false;
            }
            var o65M = 0,
                n65M;
            while (o65M < Y65M.length) {
                if (!(n65M = Y65M[o65M++]).invalid) {
                    return C65M ? o65M - 1 : n65M;
                }
            }
            return false;
        }

        function b9uM(m65M, a65M) {
            var y65M = {
                    data: [],
                    label: a65M
                },
                W65M = 0;
            while (W65M < m65M.length) {
                y65M.data.push({
                    value: m65M[W65M].key,
                    display: m65M[W65M].value
                });
                W65M++;
            }
            return y65M;
        }

        function r9uM(E65M) {
            if (N9uM._isVisible) {
                u9HM('.mbsc-sc-whl-w', N9uM._markup).css('display', '').slice(E65M).hide();
            }
        }

        function s9uM(A65M) {
            var K65M = [],
                V65M = A65M,
                z65M, P65M = true,
                l65M = 0;
            while (P65M) {
                z65M = Y9uM(V65M);
                K65M[l65M++] = z65M.key;
                P65M = z65M.children;
                if (P65M) {
                    V65M = P65M;
                }
            }
            return K65M;
        }

        function K9uM(f65M, i65M) {
            var k65M = [],
                b65M = q9uM,
                c65M = 0,
                s65M = false,
                T65M, Q65M, r65M;
            if (f65M[c65M] !== undefined && c65M <= i65M) {
                T65M = 0;
                Q65M = f65M[c65M];
                r65M = undefined;
                while (T65M < b65M.length && r65M === undefined) {
                    if (b65M[T65M].key == f65M[c65M] && !b65M[T65M].invalid) {
                        r65M = T65M;
                    }
                    T65M++;
                }
            } else {
                r65M = Y9uM(b65M, true);
                Q65M = b65M[r65M].key;
            }
            s65M = r65M !== undefined ? b65M[r65M].children : false;
            k65M[c65M] = Q65M;
            while (s65M) {
                b65M = b65M[r65M].children;
                c65M++;
                s65M = false;
                r65M = undefined;
                if (f65M[c65M] !== undefined && c65M <= i65M) {
                    T65M = 0;
                    Q65M = f65M[c65M];
                    r65M = undefined;
                    while (T65M < b65M.length && r65M === undefined) {
                        if (b65M[T65M].key == f65M[c65M] && !b65M[T65M].invalid) {
                            r65M = T65M;
                        }
                        T65M++;
                    }
                } else {
                    r65M = Y9uM(b65M, true);
                    r65M = r65M === false ? undefined : r65M;
                    Q65M = b65M[r65M].key;
                }
                s65M = r65M !== undefined && Y9uM(b65M[r65M].children) ? b65M[r65M].children : false;
                k65M[c65M] = Q65M;
            }
            return {
                lvl: c65M + 1,
                nVector: k65M
            };
        }

        function l9uM(R65M) {
            var v65M = [];
            D9uM = D9uM > y9uM++ ? D9uM : y9uM;
            R65M.children('li').each(function(I65M) {
                var H65M = u9HM(this),
                    X65M = H65M.clone();
                X65M.children('ul,ol').remove();
                var e65M = N9uM._processMarkup ? N9uM._processMarkup(X65M) : X65M.html().replace(/^\s\s*/, '').replace(/\s\s*$/, ''),
                    F65M = H65M.attr('data-invalid') ? true : false,
                    w65M = {
                        key: H65M.attr('data-val') === undefined || H65M.attr('data-val') === null ? I65M : H65M.attr('data-val'),
                        value: e65M,
                        invalid: F65M,
                        children: null
                    },
                    B65M = H65M.children('ul,ol');
                if (B65M.length) {
                    w65M.children = l9uM(B65M);
                }
                v65M.push(w65M);
            });
            y9uM--;
            return v65M;
        }

        function T9uM(u65M, L65M, U65M) {
            var g65M, O65M = (L65M || 0) + 1,
                j65M = [],
                J65M = {},
                x65M = {};
            J65M = V9uM(u65M, null, L65M);
            for (g65M = 0; g65M < u65M.length; g65M++) {
                N9uM._tempWheelArray[g65M] = u65M[g65M] = U65M.nVector[g65M] || 0;
            }
            while (O65M < U65M.lvl) {
                x65M[O65M] = W9uM ? J65M[0][O65M] : J65M[O65M][0];
                j65M.push(O65M++);
            }
            r9uM(U65M.lvl);
            m9uM = u65M.slice(0);
            if (j65M.length) {
                C9uM = true;
                N9uM.changeWheel(x65M);
            }
        }
        var c9uM = j9HM({}, N9uM.settings),
            p9uM = j9HM(N9uM.settings, b76M, c9uM),
            a9uM = p9uM.layout || (/top|bottom/.test(p9uM.display) ? 'liquid' : ''),
            W9uM = a9uM == 'liquid',
            A9uM = p9uM.readonly,
            o9uM = u9HM(this),
            t9uM, C9uM, n9uM = this.id + '_dummy',
            D9uM = 0,
            y9uM = 0,
            h9uM, m9uM = [],
            q9uM = p9uM.wheelArray || l9uM(o9uM),
            E9uM = f9uM(D9uM),
            P9uM = s9uM(q9uM),
            z9uM = V9uM(P9uM, D9uM);
        u9HM('#' + n9uM).remove();
        if (p9uM.input) {
            t9uM = u9HM(p9uM.input);
        } else if (p9uM.showInput) {
            t9uM = u9HM('<input type="text" id="' + n9uM + '" value="" class="' + p9uM.inputClass + '" placeholder="' + (p9uM.placeholder || '') + '" readonly />').insertBefore(o9uM);
        }
        if (t9uM) {
            N9uM.attachShow(t9uM);
        }
        if (!p9uM.wheelArray) {
            o9uM.hide();
        }
        return {
            wheels: z9uM,
            anchor: t9uM,
            layout: a9uM,
            headerText: false,
            setOnTap: D9uM == 1,
            formatValue: function G65M(S65M) {
                if (h9uM === undefined) {
                    h9uM = K9uM(S65M, S65M.length).lvl;
                }
                return S65M.slice(0, h9uM).join(' ');
            },
            parseValue: function d35M(M35M) {
                return M35M ? (M35M + '').split(' ') : (p9uM.defaultValue || P9uM).slice(0);
            },
            onBeforeShow: function Z35M() {
                var p35M = N9uM.getArrayVal(true);
                m9uM = p35M.slice(0);
                p9uM.wheels = V9uM(p35M, D9uM, D9uM);
                C9uM = true;
            },
            onWheelGestureStart: function N35M(D35M) {
                p9uM.readonly = Q9uM(D9uM, D35M.index);
            },
            onWheelAnimationEnd: function t35M(Y35M) {
                var h35M = Y35M.index,
                    q35M = N9uM.getArrayVal(true),
                    o35M = K9uM(q35M, h35M);
                h9uM = o35M.lvl;
                p9uM.readonly = A9uM;
                if (q35M[h35M] != m9uM[h35M]) {
                    T9uM(q35M, h35M, o35M);
                }
            },
            onFill: function n35M(C35M) {
                h9uM = undefined;
                if (t9uM) {
                    t9uM.val(C35M.valueText);
                }
            },
            validate: function W35M(E35M) {
                var m35M = E35M.values,
                    a35M = E35M.index,
                    y35M = K9uM(m35M, m35M.length);
                h9uM = y35M.lvl;
                if (a35M === undefined) {
                    r9uM(y35M.lvl);
                    if (!C9uM) {
                        T9uM(m35M, a35M, y35M);
                    }
                }
                C9uM = false;
                return {
                    disabled: i9uM(h9uM, q9uM, m35M)
                };
            },
            onDestroy: function P35M() {
                if (t9uM) {
                    u9HM('#' + n9uM).remove();
                }
                o9uM.show();
            }
        };
    };
    var N76M = U9HM.presets.scroller;
    U9HM.presetShort('image');
    N76M.image = function(K35M) {
        if (K35M.settings.enhance) {
            K35M._processMarkup = function(V35M) {
                var z35M = V35M.attr('data-icon');
                V35M.children().each(function(A35M, l35M) {
                    l35M = u9HM(l35M);
                    if (l35M.is('img')) {
                        u9HM('<div class="mbsc-img-c"></div>').insertAfter(l35M).append(l35M.addClass('mbsc-img'));
                    } else if (l35M.is('p')) {
                        l35M.addClass('mbsc-img-txt');
                    }
                });
                if (z35M) {
                    V35M.prepend('<div class="mbsc-ic mbsc-ic-' + z35M + '"></div');
                }
                V35M.html('<div class="mbsc-img-w">' + V35M.html() + '</div>');
                return V35M.html();
            };
        }
        return N76M.list.call(this, K35M);
    };
    var r76M = this && this.__extends || function() {
        var r35M = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(b35M, c35M) {
            b35M.__proto__ = c35M;
        } || function(Q35M, f35M) {
            for (var T35M in f35M) {
                if (f35M.hasOwnProperty(T35M)) Q35M[T35M] = f35M[T35M];
            }
        };
        return function(k35M, s35M) {
            function i35M() {
                this.constructor = k35M;
            }
            r35M(k35M, s35M);
            k35M.prototype = s35M === null ? Object.create(s35M) : (i35M.prototype = s35M.prototype, new i35M());
        };
    }();
    var t76M = function(R35M) {
        function v35M(X35M, w35M, B35M, e35M) {
            var H35M = R35M.call(this, X35M, w35M, B35M, e35M) || this;
            H35M.onChangeEmitter = new J9HM.EventEmitter();
            return H35M;
        }
        r76M(v35M, R35M);
        Object.defineProperty(v35M.prototype, "value", {
            set: function F35M(I35M) {
                this.setNewValueProxy(I35M);
            },
            enumerable: true,
            configurable: true
        });
        v35M.prototype.setNewValue = function(g35M) {
            if (this._instance) {
                var O35M = this._instance.getVal();
                if (O35M !== g35M) {
                    this._instance.setVal(g35M, true, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        v35M.prototype.ngAfterViewInit = function() {
            R35M.prototype.ngAfterViewInit.call(this);
            var u35M = this.target;
            if (u35M) {
                if (typeof u35M !== 'string' && u35M._elementRef && u35M._elementRef.nativeElement) {
                    u35M = u35M._elementRef.nativeElement;
                }
            }
            var J35M = j9HM({
                preset: 'image',
                input: u35M
            }, this.options, this.optionExtensions);
            this._instance = new N66M(this.element, J35M);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        v35M.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-image]',
                exportAs: 'mobiscroll'
            }]
        }];
        v35M.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        v35M.propDecorators = {
            'target': [{
                type: J9HM.Input,
                args: ['mbsc-target']
            }],
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-image']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-imageChange']
            }]
        };
        return v35M;
    }(S9HM);
    var Q66M;
    var q76M = U9HM.classes;
    var o66M = U9HM.util;
    var Y76M = o66M.prefix;
    var W66M = o66M.jsPrefix;
    var n66M = o66M.getCoord;
    var l16M = o66M.testTouch;
    var m76M = o66M.vibrate;
    var y76M = o66M.animEnd;
    var y36M = 1;
    var I36M = function U35M() {};
    var P76M = 'transparent';
    var l46M = function j35M(F75M, n75M) {
        function C75M() {
            n25M = false;
            f25M = false;
            Y45M = 0;
            w75M = 0;
            H75M = new Date();
            J45M = m45M.width();
            m75M = S45M(m45M);
            d45M = m75M.index(L35M);
            N45M = L35M[0].offsetHeight;
            h45M = L35M[0].offsetTop;
            M45M = U45M[L35M.attr('data-type') || 'defaults'];
            Z25M = M45M.stages;
        }

        function j75M(L75M) {
            var G75M;
            if (L75M.type === 'touchstart') {
                k25M = true;
                clearTimeout(a75M);
            }
            if (l16M(L75M, this) && !l45M && !A45M && !Q66M && !i25M) {
                l45M = true;
                K25M = true;
                E25M = n66M(L75M, 'X');
                X25M = n66M(L75M, 'Y');
                C45M = 0;
                H45M = 0;
                L35M = u9HM(this);
                G75M = L35M;
                C75M();
                h75M = G35M.onItemTap || M45M.tap || L35M.hasClass('mbsc-lv-parent') || L35M.hasClass('mbsc-lv-back');
                x75M = D45M.offset().top;
                L25M = L35M.offset().top;
                if (h75M) {
                    O45M = setTimeout(function() {
                        G75M.addClass('mbsc-lv-item-active');
                        t45M('onItemActivate', {
                            target: G75M[0],
                            domEvent: L75M
                        });
                    }, 120);
                }
                if (x35M.sortable && !L35M.hasClass('mbsc-lv-back')) {
                    if (!x35M.sortable.group) {
                        J25M = L35M.nextUntil('.mbsc-lv-gr-title').filter('.mbsc-lv-item');
                        u25M = L35M.prevUntil('.mbsc-lv-gr-title').filter('.mbsc-lv-item');
                    }
                    y25M = (!x35M.sortable.group ? u25M.length ? u25M.eq(-1) : L35M : m45M.children(b45M).eq(0))[0].offsetTop - h45M;
                    m25M = (!x35M.sortable.group ? J25M.length ? J25M.eq(-1) : L35M : m45M.children(b45M).eq(-1))[0].offsetTop - h45M;
                    if (x35M.sortable.handle) {
                        if (u9HM(L75M.target).hasClass('mbsc-lv-handle')) {
                            clearTimeout(O45M);
                            if (W66M === 'Moz') {
                                L75M.preventDefault();
                                D75M();
                            } else {
                                l25M = setTimeout(function() {
                                    D75M();
                                }, 100);
                            }
                        }
                    } else {
                        l25M = setTimeout(function() {
                            t25M.appendTo(L35M);
                            t25M[0].style[W66M + 'Animation'] = 'mbsc-lv-fill ' + (G35M.sortDelay - 100) + 'ms linear';
                            clearTimeout(r75M);
                            clearTimeout(O45M);
                            K25M = false;
                            l25M = setTimeout(function() {
                                t25M[0].style[W66M + 'Animation'] = '';
                                D75M();
                            }, G35M.sortDelay - 80);
                        }, 80);
                    }
                }
                if (L75M.type == 'mousedown') {
                    u9HM(document).on('mousemove', t75M).on('mouseup', V25M);
                }
            }
        }

        function t75M(M15M) {
            var d15M = false,
                Z15M = true;
            if (l45M) {
                b75M = n66M(M15M, 'X');
                c75M = n66M(M15M, 'Y');
                C45M = b75M - E25M;
                H45M = c75M - X25M;
                clearTimeout(r75M);
                if (!e45M && !T45M && !F45M && !L35M.hasClass('mbsc-lv-back')) {
                    if (Math.abs(H45M) > 10) {
                        F45M = true;
                        V25M(j9HM({}, M15M, {
                            type: M15M.type == 'mousemove' ? 'mouseup' : 'touchend'
                        }));
                        clearTimeout(O45M);
                    } else if (Math.abs(C45M) > 7) {
                        Y75M();
                    }
                }
                if (T45M) {
                    M15M.preventDefault();
                    Y45M = C45M / J45M * 100;
                    q75M();
                } else if (e45M) {
                    M15M.preventDefault();
                    var D15M, p15M = Z45M.scrollTop(),
                        S75M = Math.max(y25M, Math.min(H45M + h25M, m25M)),
                        N15M = r45M ? L25M - U25M + p15M - h25M : L25M;
                    if (I45M + p15M < N15M + S75M + N45M) {
                        Z45M.scrollTop(N15M + S75M - I45M + N45M);
                        D15M = true;
                    } else if (N15M + S75M < p15M) {
                        Z45M.scrollTop(N15M + S75M);
                        D15M = true;
                    }
                    if (D15M) {
                        h25M += Z45M.scrollTop() - p15M;
                    }
                    if (s45M) {
                        if (x35M.sortable.multiLevel && W45M.hasClass('mbsc-lv-parent')) {
                            if (h45M + N45M / 4 + S75M > s45M) {
                                d15M = true;
                            } else if (h45M + N45M - N45M / 4 + S75M > s45M) {
                                E45M = W45M.addClass('mbsc-lv-item-hl');
                                Z15M = false;
                            }
                        } else if (h45M + N45M / 2 + S75M > s45M) {
                            if (W45M.hasClass('mbsc-lv-back')) {
                                if (x35M.sortable.multiLevel) {
                                    V45M = W45M.addClass('mbsc-lv-item-hl');
                                    Z15M = false;
                                }
                            } else {
                                d15M = true;
                            }
                        }
                        if (d15M) {
                            K45M.insertAfter(W45M);
                            q45M = W45M;
                            W45M = a25M(W45M, 'next');
                            f45M = s45M;
                            s45M = W45M.length && W45M[0].offsetTop;
                            a45M++;
                        }
                    }
                    if (!d15M && f45M) {
                        if (x35M.sortable.multiLevel && q45M.hasClass('mbsc-lv-parent')) {
                            if (h45M + N45M - N45M / 4 + S75M < f45M) {
                                d15M = true;
                            } else if (h45M + N45M / 4 + S75M < f45M) {
                                E45M = q45M.addClass('mbsc-lv-item-hl');
                                Z15M = false;
                            }
                        } else if (h45M + N45M / 2 + S75M < f45M) {
                            if (q45M.hasClass('mbsc-lv-back')) {
                                if (x35M.sortable.multiLevel) {
                                    V45M = q45M.addClass('mbsc-lv-item-hl');
                                    Z15M = false;
                                }
                            } else {
                                d15M = true;
                            }
                        }
                        if (d15M) {
                            K45M.insertBefore(q45M);
                            W45M = q45M;
                            q45M = a25M(q45M, 'prev');
                            s45M = f45M;
                            f45M = q45M.length && q45M[0].offsetTop + q45M[0].offsetHeight;
                            a45M--;
                        }
                    }
                    if (Z15M) {
                        if (E45M) {
                            E45M.removeClass('mbsc-lv-item-hl');
                            E45M = false;
                        }
                        if (V45M) {
                            V45M.removeClass('mbsc-lv-item-hl');
                            V45M = false;
                        }
                    }
                    if (d15M) {
                        t45M('onSortChange', [L35M, a45M]);
                    }
                    A75M(L35M, S75M);
                    t45M('onSort', [L35M, a45M]);
                } else if (Math.abs(C45M) > 5 || Math.abs(H45M) > 5) {
                    j25M();
                }
            }
        }

        function V25M(q15M) {
            var o15M, t15M, h15M, Y15M, n15M = L35M;
            if (l45M) {
                l45M = false;
                j25M();
                if (q15M.type == 'mouseup') {
                    u9HM(document).off('mousemove', t75M).off('mouseup', V25M);
                }
                if (!F45M) {
                    a75M = setTimeout(function() {
                        k25M = false;
                    }, 300);
                }
                if (T45M || F45M || e45M) {
                    f25M = true;
                }
                if (T45M) {
                    Q75M();
                } else if (e45M) {
                    h15M = m45M;
                    if (E45M) {
                        G45M(L35M.detach());
                        t15M = P45M[E45M.attr('data-ref')];
                        a45M = S45M(t15M.child).length;
                        E45M.removeClass('mbsc-lv-item-hl');
                        if (G35M.navigateOnDrop) {
                            B25M(E45M, function() {
                                x35M.add(null, L35M, null, null, E45M, true);
                                M25M(L35M);
                                Y25M(L35M, d45M, h15M, true);
                            });
                        } else {
                            x35M.add(null, L35M, null, null, E45M, true);
                            Y25M(L35M, d45M, h15M, true);
                        }
                    } else if (V45M) {
                        G45M(L35M.detach());
                        t15M = P45M[V45M.attr('data-back')];
                        a45M = S45M(t15M.parent).index(t15M.item) + 1;
                        V45M.removeClass('mbsc-lv-item-hl');
                        if (G35M.navigateOnDrop) {
                            B25M(V45M, function() {
                                x35M.add(null, L35M, a45M, null, m45M, true);
                                M25M(L35M);
                                Y25M(L35M, d45M, h15M, true);
                            });
                        } else {
                            x35M.add(null, L35M, a45M, null, t15M.parent, true);
                            Y25M(L35M, d45M, h15M, true);
                        }
                    } else {
                        o15M = K45M[0].offsetTop - h45M;
                        A75M(L35M, o15M, Math.abs(o15M - Math.max(y25M, Math.min(H45M + h25M, m25M))) * 6, function() {
                            G45M(L35M);
                            L35M.insertBefore(K45M);
                            Y25M(L35M, d45M, h15M, a45M !== d45M);
                        });
                    }
                    e45M = false;
                } else if (!F45M && Math.abs(C45M) < 5 && Math.abs(H45M) < 5) {
                    if (M45M.tap) {
                        Y15M = M45M.tap.call(o45M, {
                            target: L35M,
                            index: d45M,
                            domEvent: q15M
                        }, x35M);
                    }
                    if (h75M) {
                        if (q15M.type === 'touchend') {
                            o66M.preventClick();
                        }
                        L35M.addClass('mbsc-lv-item-active');
                        t45M('onItemActivate', {
                            target: L35M[0],
                            domEvent: q15M
                        });
                    }
                    Y15M = t45M('onItemTap', {
                        target: L35M[0],
                        index: d45M,
                        domEvent: q15M
                    });
                    if (Y15M !== false) {
                        B25M(L35M);
                    }
                }
                clearTimeout(O45M);
                setTimeout(function() {
                    n15M.removeClass('mbsc-lv-item-active');
                    t45M('onItemDeactivate', {
                        target: n15M[0]
                    });
                }, 100);
                F45M = false;
                n45M = null;
            }
        }

        function Y75M() {
            T45M = L45M(M45M.swipe, {
                target: L35M[0],
                index: d45M,
                direction: C45M > 0 ? 'right' : 'left'
            });
            if (T45M) {
                j25M();
                clearTimeout(O45M);
                if (M45M.actions) {
                    p25M = B75M(M45M, C45M);
                    P25M.html(M45M.icons).show().children().css('width', p25M + '%');
                    y45M.hide();
                    u9HM('.mbsc-lv-ic-m', p45M).removeClass('mbsc-lv-ic-disabled');
                    u9HM(M45M.leftMenu).each(E75M);
                    u9HM(M45M.rightMenu).each(E75M);
                } else {
                    y45M.show();
                    P25M.hide();
                    w45M = M45M.start + (C45M > 0 ? 0 : 1);
                    R45M = Z25M[w45M - 1];
                    B45M = Z25M[w45M];
                }
                L35M.addClass('mbsc-lv-item-swiping').removeClass('mbsc-lv-item-active');
                z25M.css('line-height', N45M + 'px');
                p45M.css({
                    top: h45M,
                    height: N45M,
                    backgroundColor: X75M(C45M)
                }).addClass('mbsc-lv-stage-c-v').appendTo(m45M.parent());
                if (G35M.iconSlide) {
                    L35M.append(y45M);
                }
                t45M('onSlideStart', {
                    target: L35M[0],
                    index: d45M
                });
            }
        }

        function q75M() {
            var C15M = false;
            if (!C25M) {
                if (M45M.actions) {
                    p45M.attr('class', 'mbsc-lv-stage-c-v mbsc-lv-stage-c mbsc-lv-' + (Y45M < 0 ? 'right' : 'left'));
                } else {
                    if (R45M && Y45M <= R45M.percent) {
                        w45M--;
                        B45M = R45M;
                        R45M = Z25M[w45M];
                        C15M = true;
                    } else if (B45M && Y45M >= B45M.percent) {
                        w45M++;
                        R45M = B45M;
                        B45M = Z25M[w45M];
                        C15M = true;
                    }
                    if (C15M) {
                        n45M = Y45M > 0 ? R45M : B45M;
                        if (n45M) {
                            T25M(n45M, G35M.iconSlide);
                            t45M('onStageChange', {
                                target: L35M[0],
                                index: d45M,
                                stage: n45M
                            });
                        }
                    }
                }
                if (!g45M) {
                    C25M = true;
                    O75M = t46M(V75M);
                }
            }
        }

        function Q75M(W15M) {
            var a15M, E15M, y15M, m15M = false,
                P15M = true;
            o46M(O75M);
            C25M = false;
            if (!g45M) {
                V75M();
            }
            if (M45M.actions) {
                if (Math.abs(Y45M) > 10 && p25M) {
                    x45M(L35M, Y45M < 0 ? -p25M : p25M, 200);
                    m15M = true;
                    Q66M = true;
                    o75M = L35M;
                    f75M = d45M;
                    u9HM(document).on('touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf', function(K15M) {
                        K15M.preventDefault();
                        s25M(L35M, true, W15M);
                    });
                }
            } else if (Y45M) {
                if (G35M.quickSwipe && !g45M) {
                    y15M = new Date() - H75M;
                    a15M = y15M < 300 && C45M < -50;
                    E15M = y15M < 300 && C45M > 50;
                    if (a15M) {
                        n25M = true;
                        n45M = M45M.left;
                        T25M(n45M, G35M.iconSlide);
                    } else if (E15M) {
                        n25M = true;
                        n45M = M45M.right;
                        T25M(n45M, G35M.iconSlide);
                    }
                }
                if (n45M && n45M.action) {
                    z75M = L45M(n45M.disabled, {
                        target: L35M[0],
                        index: d45M
                    });
                    if (!z75M) {
                        m15M = true;
                        Q66M = g45M || L45M(n45M.confirm, {
                            target: L35M[0],
                            index: d45M
                        });
                        if (Q66M) {
                            x45M(L35M, (Y45M < 0 ? -1 : 1) * y45M[0].offsetWidth * 100 / J45M, 200, true);
                            K75M(n45M, L35M, d45M, false, W15M);
                        } else {
                            S25M(n45M, L35M, d45M, W15M);
                        }
                    }
                }
            }
            if (!m15M) {
                s25M(L35M, P15M, W15M);
            }
            T45M = false;
        }

        function D75M() {
            e45M = true;
            E45M = false;
            V45M = false;
            h25M = 0;
            a45M = d45M;
            if (G35M.vibrate) {
                m76M();
            }
            W45M = a25M(L35M, 'next');
            s45M = W45M.length && W45M[0].offsetTop;
            q45M = a25M(L35M, 'prev');
            f45M = q45M.length && q45M[0].offsetTop + q45M[0].offsetHeight;
            K45M.height(N45M).insertAfter(L35M);
            L35M.css({
                top: h45M
            }).addClass('mbsc-lv-item-dragging').removeClass('mbsc-lv-item-active').appendTo(l75M);
            t45M('onSortStart', {
                target: L35M[0],
                index: a45M
            });
        }

        function Y25M(V15M, z15M, l15M, A15M) {
            V15M.removeClass('mbsc-lv-item-dragging');
            K45M.remove();
            t45M('onSortEnd', {
                target: V15M[0],
                index: a45M
            });
            if (G35M.vibrate) {
                m76M();
            }
            if (A15M) {
                x35M.addUndoAction(function(r15M) {
                    x35M.move(V15M, z15M, null, r15M, l15M, true);
                }, true);
                t45M('onSortUpdate', {
                    target: V15M[0],
                    index: a45M
                });
            }
        }

        function W75M() {
            if (!k25M) {
                clearTimeout(v75M);
                if (Q66M) {
                    u9HM(document).trigger('touchstart');
                }
                if (G25M) {
                    x35M.close(Q45M, H25M);
                    G25M = false;
                    Q45M = null;
                }
            }
        }

        function d75M() {
            clearTimeout(P75M);
            P75M = setTimeout(function() {
                I45M = Z45M[0].innerHeight || Z45M.innerHeight();
                U25M = r45M ? Z45M.offset().top : 0;
                if (l45M) {
                    h45M = L35M[0].offsetTop;
                    N45M = L35M[0].offsetHeight;
                    p45M.css({
                        top: h45M,
                        height: N45M
                    });
                }
            }, 200);
        }

        function y75M(b15M) {
            if (f25M) {
                b15M.stopPropagation();
                b15M.preventDefault();
                f25M = false;
            }
        }

        function U75M() {
            if (e45M || !l45M) {
                var f15M, Q15M = Z45M.scrollTop(),
                    T15M = D45M.offset().top,
                    s15M = D45M[0].offsetHeight,
                    c15M = r45M ? Z45M.offset().top : Q15M;
                u9HM('.mbsc-lv-gr-title', D45M).each(function(i15M, k15M) {
                    if (u9HM(k15M).offset().top < c15M) {
                        f15M = k15M;
                    }
                });
                if (T15M < c15M && T15M + s15M > c15M) {
                    c45M.show().empty().append(u9HM(f15M).clone());
                } else {
                    c45M.hide();
                }
            }
        }

        function E75M(R15M, v15M) {
            if (L45M(v15M.disabled, {
                    target: L35M[0],
                    index: d45M
                })) {
                u9HM('.mbsc-ic-' + v15M.icon, p45M).addClass('mbsc-lv-ic-disabled');
            }
        }

        function S25M(X15M, H15M, w15M, F15M) {
            var B15M, e15M = {
                icon: 'undo2',
                text: G35M.undoText,
                color: '#b1b1b1',
                action: function I15M() {
                    x35M.undo();
                }
            };
            if (X15M.undo) {
                x35M.startActionTrack();
                if (u9HM.isFunction(X15M.undo)) {
                    x35M.addUndoAction(function() {
                        X15M.undo.call(o45M, {
                            target: H15M[0],
                            index: w15M
                        }, x35M);
                    });
                }
                b25M = H15M.attr('data-ref');
            }
            B15M = X15M.action.call(o45M, {
                target: H15M[0],
                index: w15M
            }, x35M);
            if (X15M.undo) {
                x35M.endActionTrack();
                if (B15M !== false) {
                    x45M(H15M, +H15M.attr('data-pos') < 0 ? -100 : 100, 200);
                }
                K45M.height(N45M).insertAfter(H15M);
                H15M.css('top', h45M).addClass('mbsc-lv-item-undo');
                P25M.hide();
                y45M.show();
                p45M.append(y45M);
                T25M(e15M);
                K75M(e15M, H15M, w15M, true, F15M);
            } else {
                s25M(H15M, B15M, F15M);
            }
        }

        function K75M(j15M, g15M, x15M, O15M, u15M) {
            var J15M, U15M;
            Q66M = true;
            u9HM(document).off('.mbsc-lv-conf').on('touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf', function(L15M) {
                L15M.preventDefault();
                if (O15M) {
                    T75M(g15M);
                }
                s25M(g15M, true, u15M);
            });
            if (!d25M) {
                y45M.off('.mbsc-lv-conf').on('touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf', function(G15M) {
                    G15M.stopPropagation();
                    J15M = n66M(G15M, 'X');
                    U15M = n66M(G15M, 'Y');
                }).on('touchend.mbsc-lv-conf mouseup.mbsc-lv-conf', function(S15M) {
                    S15M.preventDefault();
                    if (S15M.type === 'touchend') {
                        o66M.preventClick();
                    }
                    if (Math.abs(n66M(S15M, 'X') - J15M) < 10 && Math.abs(n66M(S15M, 'Y') - U15M) < 10) {
                        S25M(j15M, g15M, x15M, u15M);
                        if (O15M) {
                            c25M = null;
                            T75M(g15M);
                        }
                    }
                });
            }
        }

        function V75M() {
            x45M(L35M, w75M + C45M * 100 / J45M);
            C25M = false;
        }

        function s25M(d85M, Z85M, M85M) {
            u9HM(document).off('.mbsc-lv-conf');
            y45M.off('.mbsc-lv-conf');
            if (Z85M !== false) {
                x45M(d85M, 0, d85M.attr('data-pos') !== '0' ? 200 : 0, false, function() {
                    O25M(d85M, M85M);
                    G45M(d85M);
                });
            } else {
                O25M(d85M, M85M);
            }
            Q66M = false;
        }

        function x45M(N85M, p85M, D85M, h85M, t85M) {
            p85M = Math.max(T45M == 'right' ? 0 : -100, Math.min(p85M, T45M == 'left' ? 0 : 100));
            z45M = N85M[0].style;
            N85M.attr('data-pos', p85M);
            z45M[W66M + 'Transform'] = 'translate3d(' + (h85M ? J45M * p85M / 100 + 'px' : p85M + '%') + ',0,0)';
            z45M[W66M + 'Transition'] = Y76M + 'transform ' + (D85M || 0) + 'ms';
            if (t85M) {
                A45M++;
                setTimeout(function() {
                    t85M();
                    A45M--;
                }, D85M);
            }
            Y45M = p85M;
        }

        function A75M(n85M, q85M, o85M, Y85M) {
            q85M = Math.max(y25M, Math.min(q85M, m25M));
            z45M = n85M[0].style;
            z45M[W66M + 'Transform'] = 'translate3d(0,' + q85M + 'px,0)';
            z45M[W66M + 'Transition'] = Y76M + 'transform ' + (o85M || 0) + 'ms ease-out';
            if (Y85M) {
                A45M++;
                setTimeout(function() {
                    Y85M();
                    A45M--;
                }, o85M);
            }
        }

        function j25M() {
            clearTimeout(l25M);
            if (!K25M && x35M.sortable) {
                K25M = true;
                t25M.remove();
            }
        }

        function T25M(C85M, m85M) {
            var W85M = L45M(C85M.text, {
                target: L35M[0],
                index: d45M
            }) || '';
            if (L45M(C85M.disabled, {
                    target: L35M[0],
                    index: d45M
                })) {
                p45M.addClass('mbsc-lv-ic-disabled');
            } else {
                p45M.removeClass('mbsc-lv-ic-disabled');
            }
            p45M.css('background-color', C85M.color || (C85M.percent === 0 ? X75M(Y45M) : P76M));
            y45M.attr('class', 'mbsc-lv-ic-c mbsc-lv-ic-' + (m85M ? 'move-' : '') + (Y45M < 0 ? 'right' : 'left'));
            D25M.attr('class', ' mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-' + (C85M.icon || 'none'));
            z25M.attr('class', 'mbsc-lv-ic-text' + (C85M.icon ? '' : ' mbsc-lv-ic-text-only') + (W85M ? '' : ' mbsc-lv-ic-only')).html(W85M || '&nbsp;');
            if (G35M.animateIcons) {
                if (n25M) {
                    D25M.addClass('mbsc-lv-ic-v');
                } else {
                    setTimeout(function() {
                        D25M.addClass('mbsc-lv-ic-a');
                    }, 10);
                }
            }
        }

        function O25M(y85M, a85M) {
            if (!l45M) {
                D25M.attr('class', 'mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-none');
                p45M.attr('style', '').removeClass('mbsc-lv-stage-c-v');
                z25M.html('');
            }
            p45M.removeClass('mbsc-lv-left mbsc-lv-right');
            if (y85M) {
                t45M('onSlideEnd', {
                    target: y85M[0],
                    index: d45M
                });
                if (a85M) {
                    a85M();
                }
            }
        }

        function T75M(E85M) {
            E85M.css('top', '').removeClass('mbsc-lv-item-undo');
            if (c25M) {
                x35M.animate(K45M, 'collapse', function() {
                    K45M.remove();
                });
            } else {
                K45M.remove();
            }
            O25M();
            b25M = null;
            c25M = null;
        }

        function G45M(P85M) {
            z45M = P85M[0].style;
            z45M[W66M + 'Transform'] = '';
            z45M[W66M + 'Transition'] = '';
            z45M.top = '';
            P85M.removeClass('mbsc-lv-item-swiping');
        }

        function L45M(K85M, V85M) {
            return u9HM.isFunction(K85M) ? K85M.call(this, V85M, x35M) : K85M;
        }

        function s75M(z85M) {
            var l85M;
            if (!z85M.attr('data-ref')) {
                l85M = y36M++;
                z85M.attr('data-ref', l85M);
                P45M[l85M] = {
                    item: z85M,
                    child: z85M.children(i45M),
                    parent: z85M.parent(),
                    ref: z85M.parent()[0] === o45M ? null : z85M.parent().parent().attr('data-ref')
                };
            }
            z85M.addClass('mbsc-lv-item');
            if (x35M.sortable.handle && z85M.attr('data-role') != 'list-divider' && !z85M.children('.mbsc-lv-handle-c').length) {
                z85M.append(e75M);
            }
            if (G35M.enhance && !z85M.hasClass('mbsc-lv-item-enhanced')) {
                var A85M = z85M.attr('data-icon'),
                    r85M = z85M.find('img').eq(0).addClass('mbsc-lv-img');
                if (r85M.is(':first-child')) {
                    z85M.addClass('mbsc-lv-img-' + (G35M.rtl ? 'right' : 'left'));
                } else if (r85M.length) {
                    z85M.addClass('mbsc-lv-img-' + (G35M.rtl ? 'left' : 'right'));
                }
                z85M.addClass('mbsc-lv-item-enhanced').children().each(function(c85M, b85M) {
                    b85M = u9HM(b85M);
                    if (b85M.is('p, h1, h2, h3, h4, h5, h6')) {
                        b85M.addClass('mbsc-lv-txt');
                    }
                });
                if (A85M) {
                    z85M.addClass('mbsc-lv-item-ic-' + (z85M.attr('data-icon-align') || (G35M.rtl ? 'right' : 'left'))).append('<div class="mbsc-lv-item-ic mbsc-ic mbsc-ic-' + A85M + '"></div>');
                }
            }
        }

        function k75M(T85M) {
            u9HM(b45M, T85M).not('.mbsc-lv-item').each(function() {
                s75M(u9HM(this));
            });
            u9HM('[data-role="list-divider"]', T85M).removeClass('mbsc-lv-item').addClass('mbsc-lv-gr-title');
            u9HM(i45M, T85M).not('.mbsc-lv').addClass('mbsc-lv').prepend(w25M).parent().addClass('mbsc-lv-parent').prepend(M75M);
            u9HM('.mbsc-lv-back', T85M).each(function() {
                u9HM(this).attr('data-back', u9HM(this).parent().parent().attr('data-ref'));
            });
        }

        function S45M(f85M) {
            return f85M.children(b45M).not('.mbsc-lv-back').not('.mbsc-lv-removed').not('.mbsc-lv-ph');
        }

        function j45M(Q85M) {
            if ((typeof Q85M === 'undefined' ? 'undefined' : B66M(Q85M)) !== 'object') {
                Q85M = u9HM(b45M + '[data-id="' + Q85M + '"]', S35M);
            }
            return u9HM(Q85M);
        }

        function u75M(i85M) {
            var k85M = 0,
                s85M = P45M[i85M.attr('data-ref')];
            while (s85M && s85M.ref) {
                k85M++;
                s85M = P45M[s85M.ref];
            }
            return k85M;
        }

        function a25M(v85M, R85M) {
            v85M = v85M[R85M]();
            while (v85M.length && (!v85M.hasClass('mbsc-lv-item') || v85M.hasClass('mbsc-lv-ph') || v85M.hasClass('mbsc-lv-item-dragging'))) {
                if (!x35M.sortable.group && v85M.hasClass('mbsc-lv-gr-title')) {
                    return false;
                }
                v85M = v85M[R85M]();
            }
            return v85M;
        }

        function X75M(H85M) {
            return (H85M > 0 ? M45M.right : M45M.left).color || P76M;
        }

        function k45M(X85M) {
            return o66M.isNumeric(X85M) ? X85M + '' : 0;
        }

        function B75M(w85M, B85M) {
            return +(B85M < 0 ? k45M((w85M.actionsWidth || 0).right) || k45M(w85M.actionsWidth) || k45M(G35M.actionsWidth.right) || k45M(G35M.actionsWidth) : k45M((w85M.actionsWidth || 0).left) || k45M(w85M.actionsWidth) || k45M(G35M.actionsWidth.left) || k45M(G35M.actionsWidth));
        }

        function M25M(I85M, O85M) {
            if (I85M) {
                var F85M = Z45M.scrollTop(),
                    g85M = I85M.is('.mbsc-lv-item') ? I85M[0].offsetHeight : 0,
                    e85M = I85M.offset().top + (r45M ? F85M - U25M : 0);
                if (O85M) {
                    if (e85M < F85M || e85M + g85M > F85M + I45M) {
                        Z45M.scrollTop(e85M);
                    }
                } else {
                    if (e85M < F85M) {
                        Z45M.scrollTop(e85M);
                    } else if (e85M + g85M > F85M + I45M) {
                        Z45M.scrollTop(Math.min(e85M, e85M + g85M - I45M / 2));
                    }
                }
            }
        }

        function e25M(x85M, u85M, J85M, U85M, L85M) {
            var G85M = u85M.parent(),
                j85M = u85M.prev();
            U85M = U85M || I36M;
            if (j85M[0] === y45M[0]) {
                j85M = y45M.prev();
            }
            if (m45M[0] !== u85M[0]) {
                t45M('onNavStart', {
                    level: X45M,
                    direction: x85M,
                    list: u85M[0]
                });
                I25M.prepend(u85M.addClass('mbsc-lv-v mbsc-lv-sl-new'));
                M25M(S35M);
                g75M(I25M, 'mbsc-lv-sl-' + x85M, function() {
                    m45M.removeClass('mbsc-lv-sl-curr');
                    u85M.removeClass('mbsc-lv-sl-new').addClass('mbsc-lv-sl-curr');
                    if (Q25M && Q25M.length) {
                        m45M.removeClass('mbsc-lv-v').insertAfter(Q25M);
                    } else {
                        R25M.append(m45M.removeClass('mbsc-lv-v'));
                    }
                    Q25M = j85M;
                    R25M = G85M;
                    m45M = u85M;
                    M25M(J85M, L85M);
                    U85M.call(o45M, J85M);
                    t45M('onNavEnd', {
                        level: X45M,
                        direction: x85M,
                        list: u85M[0]
                    });
                });
            } else {
                M25M(J85M, L85M);
                U85M.call(o45M, J85M);
            }
        }

        function B25M(S85M, d05M) {
            if (!A45M) {
                if (S85M.hasClass('mbsc-lv-parent')) {
                    X45M++;
                    e25M('r', P45M[S85M.attr('data-ref')].child, null, d05M);
                } else if (S85M.hasClass('mbsc-lv-back')) {
                    X45M--;
                    e25M('l', P45M[S85M.attr('data-back')].parent, P45M[S85M.attr('data-back')].item, d05M);
                }
            }
        }

        function g75M(M05M, p05M, Z05M) {
            function N05M() {
                clearTimeout(D05M);
                A45M--;
                M05M.off(y76M, N05M).removeClass(p05M);
                Z05M.call(o45M, M05M);
            }
            var D05M;
            Z05M = Z05M || I36M;
            if (G35M.animation && p05M !== 'mbsc-lv-item-none') {
                A45M++;
                M05M.on(y76M, N05M).addClass(p05M);
                D05M = setTimeout(N05M, 500);
            } else {
                Z05M.call(o45M, M05M);
            }
        }

        function N75M(t05M, h05M) {
            var q05M, o05M = t05M.attr('data-ref');
            q05M = v25M[o05M] = v25M[o05M] || [];
            if (h05M) {
                q05M.push(h05M);
            }
            if (t05M.attr('data-action')) {
                return;
            }
            h05M = q05M.shift();
            t05M.attr('data-action', 1);
            h05M(function() {
                t05M.removeAttr('data-action');
                if (q05M.length) {
                    N75M(t05M);
                } else {
                    delete v25M[o05M];
                }
            });
        }

        function x25M(n05M, W05M, m05M) {
            var C05M, Y05M;
            if (n05M && n05M.length) {
                C05M = 100 / (n05M.length + 2);
                u9HM.each(n05M, function(a05M, y05M) {
                    if (y05M.key === undefined) {
                        y05M.key = g25M++;
                    }
                    if (y05M.percent === undefined) {
                        y05M.percent = W05M * C05M * (a05M + 1);
                        if (m05M) {
                            Y05M = j9HM({}, y05M);
                            Y05M.key = g25M++;
                            Y05M.percent = -C05M * (a05M + 1);
                            n05M.push(Y05M);
                            o25M[Y05M.key] = Y05M;
                        }
                    }
                    o25M[y05M.key] = y05M;
                });
            }
        }
        var l45M, p25M, O45M, Y45M, K25M, o75M, f75M, S35M, a45M, m45M, Q25M, R25M, m75M, n45M, w45M, P75M, d25M, z75M, C45M, H45M, E45M, V45M, e45M, l75M, r75M, b75M, c75M, t45M, t25M, A25M, c45M, Z75M, J75M, r45M, e75M, I75M, Q45M, G25M, H25M, R75M, v75M, w25M, M75M, D25M, y45M, p45M, J45M, L35M, N45M, d45M, N25M, b45M, L25M, q25M, i45M, x75M, m25M, y25M, P25M, W45M, s45M, B45M, J25M, r25M, f25M, k25M, a75M, u25M, K45M, q45M, f45M, R45M, n25M, O75M, C25M, G35M, F45M, g45M, I25M, g25M, Z25M, w75M, H75M, E25M, X25M, z45M, T45M, p75M, i75M, h75M, z25M, l25M, M45M, U45M, b25M, c25M, Z45M, I45M, h25M, U25M, x35M = this,
            o45M = F75M,
            D45M = u9HM(o45M),
            A45M = 0,
            X45M = 0,
            h45M = 0,
            o25M = {},
            v25M = {},
            P45M = {};
        q76M.Base.call(this, F75M, n75M, true);
        x35M.animate = function(E05M, P05M, K05M) {
            g75M(E05M, 'mbsc-lv-item-' + P05M, K05M);
        };
        x35M.add = function(w05M, k05M, r05M, s05M, X05M, c05M) {
            var v05M, T05M, i05M, H05M, b05M, Q05M, f05M = '',
                z05M = X05M === undefined ? D45M : j45M(X05M),
                l05M = z05M,
                V05M = (typeof k05M === 'undefined' ? 'undefined' : B66M(k05M)) !== 'object' ? u9HM('<' + N25M + ' data-ref="' + y36M++ + '" data-id="' + w05M + '">' + k05M + '</' + N25M + '>') : k05M,
                R05M = V05M.attr('data-pos') < 0 ? 'left' : 'right',
                A05M = V05M.attr('data-ref');
            s05M = s05M || I36M;
            if (!A05M) {
                A05M = y36M++;
                V05M.addClass('mbsc-lv-item').attr('data-ref', A05M);
            }
            s75M(V05M);
            if (!c05M) {
                x35M.addUndoAction(function(B05M) {
                    if (H05M) {
                        x35M.navigate(z05M, function() {
                            l05M.remove();
                            z05M.removeClass('mbsc-lv-parent').children('.mbsc-lv-arr').remove();
                            b05M.child = z05M.children(i45M);
                            x35M.remove(V05M, null, B05M, true);
                        });
                    } else {
                        x35M.remove(V05M, null, B05M, true);
                    }
                }, true);
            }
            N75M(V05M, function(e05M) {
                G45M(V05M.css('top', '').removeClass('mbsc-lv-item-undo'));
                if (z05M.is(b45M)) {
                    Q05M = z05M.attr('data-ref');
                    if (!z05M.children(i45M).length) {
                        H05M = true;
                        z05M.append('<' + q25M + '></' + q25M + '>');
                    }
                } else {
                    Q05M = z05M.children('.mbsc-lv-back').attr('data-back');
                }
                b05M = P45M[Q05M];
                if (b05M) {
                    if (!b05M.child.length) {
                        z05M.addClass('mbsc-lv-parent').prepend(M75M);
                        l05M = z05M.children(i45M).prepend(w25M).addClass('mbsc-lv');
                        b05M.child = l05M;
                        u9HM('.mbsc-lv-back', z05M).attr('data-back', Q05M);
                    } else {
                        l05M = b05M.child;
                    }
                }
                P45M[A05M] = {
                    item: V05M,
                    child: V05M.children(i45M),
                    parent: l05M,
                    ref: Q05M
                };
                i05M = S45M(l05M);
                T05M = i05M.length;
                if (r05M === undefined || r05M === null) {
                    r05M = T05M;
                }
                if (c05M) {
                    f05M = 'mbsc-lv-item-new-' + (c05M ? R05M : '');
                }
                k75M(V05M.addClass(f05M));
                if (r05M !== false) {
                    if (!T05M) {
                        v05M = u9HM('.mbsc-lv-back', l05M);
                        if (v05M.length) {
                            V05M.insertAfter(v05M);
                        } else {
                            l05M.append(V05M);
                        }
                    } else if (r05M < T05M) {
                        V05M.insertBefore(i05M.eq(r05M));
                    } else {
                        V05M.insertAfter(i05M.eq(T05M - 1));
                    }
                }
                if (l05M.hasClass('mbsc-lv-v')) {
                    x35M.animate(V05M.height(V05M[0].offsetHeight), c05M && b25M === A05M ? 'none' : 'expand', function(F05M) {
                        x35M.animate(F05M.height(''), c05M ? 'add-' + R05M : 'pop-in', function(I05M) {
                            s05M.call(o45M, I05M.removeClass(f05M));
                            e05M();
                        });
                    });
                } else {
                    s05M.call(o45M, V05M.removeClass(f05M));
                    e05M();
                }
                S35M.trigger('mbsc-refresh');
                t45M('onItemAdd', {
                    target: V05M[0]
                });
            });
        };
        x35M.swipe = function(g05M, u05M, O05M, J05M, U05M) {
            g05M = j45M(g05M);
            L35M = g05M;
            d25M = J05M;
            g45M = true;
            l45M = true;
            O05M = O05M === undefined ? 300 : O05M;
            C45M = u05M > 0 ? 1 : -1;
            C75M();
            Y75M();
            x45M(g05M, u05M, O05M);
            clearTimeout(i75M);
            clearInterval(p75M);
            p75M = setInterval(function() {
                Y45M = o66M.getPosition(g05M) / J45M * 100;
                q75M();
            }, 10);
            i75M = setTimeout(function() {
                clearInterval(p75M);
                Y45M = u05M;
                q75M();
                Q75M(U05M);
                d25M = false;
                g45M = false;
                l45M = false;
            }, O05M);
        };
        x35M.openStage = function(x05M, j05M, L05M, G05M) {
            if (o25M[j05M]) {
                x35M.swipe(x05M, o25M[j05M].percent, L05M, G05M);
            }
        };
        x35M.openActions = function(S05M, M55M, Z55M, p55M) {
            S05M = j45M(S05M);
            var d55M = B75M(U45M[S05M.attr('data-type') || 'defaults'], M55M == 'left' ? -1 : 1);
            x35M.swipe(S05M, M55M == 'left' ? -d55M : d55M, Z55M, p55M);
        };
        x35M.close = function(N55M, D55M) {
            x35M.swipe(N55M, 0, D55M);
        };
        x35M.remove = function(t55M, o55M, h55M, n55M) {
            var C55M, q55M, Y55M;
            h55M = h55M || I36M;
            t55M = j45M(t55M);
            if (t55M.length) {
                q55M = t55M.parent();
                C55M = S45M(q55M).index(t55M);
                Y55M = t55M[0].style;
                if (!n55M) {
                    if (t55M.attr('data-ref') === b25M) {
                        c25M = true;
                    }
                    x35M.addUndoAction(function(W55M) {
                        x35M.add(null, t55M, C55M, W55M, q55M, true);
                    }, true);
                }
                N75M(t55M, function(m55M) {
                    o55M = o55M || (t55M.attr('data-pos') < 0 ? 'left' : 'right');
                    if (q55M.hasClass('mbsc-lv-v')) {
                        x35M.animate(t55M.addClass('mbsc-lv-removed'), n55M ? 'pop-out' : 'remove-' + o55M, function(y55M) {
                            Y55M.height = y55M[0].offsetHeight + 'px';
                            x35M.animate(y55M, 'collapse', function(a55M) {
                                Y55M.height = '';
                                G45M(a55M.removeClass('mbsc-lv-removed'));
                                if (h55M.call(o45M, a55M) !== false) {
                                    a55M.remove();
                                }
                                m55M();
                            });
                        });
                    } else {
                        if (h55M.call(o45M, t55M) !== false) {
                            t55M.remove();
                        }
                        m55M();
                    }
                    t45M('onItemRemove', {
                        target: t55M[0]
                    });
                });
            }
        };
        x35M.move = function(E55M, K55M, V55M, z55M, l55M, P55M) {
            E55M = j45M(E55M);
            if (!P55M) {
                x35M.startActionTrack();
            }
            p45M.append(y45M);
            x35M.remove(E55M, V55M, null, P55M);
            x35M.add(null, E55M, K55M, z55M, l55M, P55M);
            if (!P55M) {
                x35M.endActionTrack();
            }
        };
        x35M.navigate = function(A55M, c55M) {
            var r55M, b55M;
            A55M = j45M(A55M);
            r55M = P45M[A55M.attr('data-ref')];
            b55M = u75M(A55M);
            if (r55M) {
                e25M(b55M >= X45M ? 'r' : 'l', r55M.parent, A55M, c55M, true);
                X45M = b55M;
            }
        };
        x35M._processSettings = function() {
            if (D45M.is('[mbsc-enhance]')) {
                Z75M = true;
                D45M.removeAttr('mbsc-enhance');
            }
        };
        x35M._init = function() {
            var k55M, i55M, v55M, T55M = 0,
                f55M = '',
                Q55M = '',
				s45x = D45M.find("ul,ol").length ? "left" : "right",
                s55M = '';
				
           	q25M = G35M.listNode;
            i45M = G35M.listSelector;
            N25M = G35M.itemNode;
            b45M = G35M.itemSelector;
            v55M = G35M.sort || G35M.sortable;
			
			k55M = 'mbsc-lv-cont mbsc-lv-' + G35M.theme + (G35M.rtl ? ' mbsc-lv-rtl' : '') + (G35M.baseTheme ? ' mbsc-lv-' + G35M.baseTheme : '') + (G35M.animateIcons ? ' mbsc-lv-ic-anim' : '') + (G35M.striped ? ' mbsc-lv-alt-row ' : '') + (G35M.fixedHeader ? ' mbsc-lv-has-fixed-header ' : '');
				
            x35M.sortable = v55M || false;
            if (!S35M) {
                f55M += '<div class="mbsc-lv-multi-c"></div>';
                f55M += '<div class="mbsc-lv-ic-c"><div class="mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-none"></div><div class="mbsc-lv-ic-text"></div></div>';
                D45M.addClass('mbsc-lv mbsc-lv-v mbsc-lv-root').show();
                p45M = u9HM('<div class="mbsc-lv-stage-c">' + f55M + '</div>');
                y45M = u9HM('.mbsc-lv-ic-c', p45M);
                P25M = u9HM('.mbsc-lv-multi-c', p45M);
                D25M = u9HM('.mbsc-lv-ic-s', p45M);
                z25M = u9HM('.mbsc-lv-ic-text', p45M);
                K45M = u9HM('<' + N25M + ' class="mbsc-lv-item mbsc-lv-ph"></' + N25M + '>');
                t25M = u9HM('<div class="mbsc-lv-fill-item"></div>');
                S35M = u9HM('<div class="' + k55M + '"><' + q25M + ' class="mbsc-lv mbsc-lv-dummy"></' + q25M + '><div class="mbsc-lv-sl-c"></div></div>');
                r45M = G35M.context !== 'body';
                Z45M = u9HM(r45M ? G35M.context : window);
                l75M = u9HM('.mbsc-lv-dummy', S35M);
                S35M.insertAfter(D45M);
                Z45M.on('orientationchange resize', d75M);
                d75M();
                S35M.on('touchstart mousedown', '.mbsc-lv-item', j75M).on('touchmove', '.mbsc-lv-item', t75M).on('touchend touchcancel', '.mbsc-lv-item', V25M);
                o45M.addEventListener('click', y75M, true);
                S35M.on('touchstart mousedown', '.mbsc-lv-ic-m', function(R55M) {
                    if (!d25M) {
                        R55M.stopPropagation();
                        R55M.preventDefault();
                    }
                    E25M = n66M(R55M, 'X');
                    X25M = n66M(R55M, 'Y');
                }).on('touchend mouseup', '.mbsc-lv-ic-m', function(H55M) {
                    if (!d25M) {
                        if (H55M.type === 'touchend') {
                            o66M.preventClick();
                        }
                        if (Q66M && !u9HM(this).hasClass('mbsc-lv-ic-disabled') && Math.abs(n66M(H55M, 'X') - E25M) < 10 && Math.abs(n66M(H55M, 'Y') - X25M) < 10) {
                            S25M((Y45M < 0 ? M45M.rightMenu : M45M.leftMenu)[u9HM(this).index()], o75M, f75M);
                        }
                    }
                });
                I25M = u9HM('.mbsc-lv-sl-c', S35M).append(D45M.addClass('mbsc-lv-sl-curr')).attr('data-ref', y36M++);
                m45M = D45M;
                R25M = S35M;
            } else {
                S35M.attr('class', k55M);
                if (v55M.handle) {
                    u9HM('.mbsc-lv-handle-c', D45M).remove();
                }
				
                u9HM(b45M + ':not(.mbsc-lv-back)', D45M).removeClass('mbsc-lv-item');
            }
					
			w25M = '<li class="mbsc-lv-item mbsc-lv-back">' + G35M.backText + '<div class="mbsc-lv-arr mbsc-lv-ic mbsc-ic ' + G35M.leftArrowClass + '"></div></li>';
			M75M = '<div class="mbsc-lv-arr mbsc-lv-ic mbsc-ic ' + G35M.rightArrowClass + '"></div>';
			if (x35M.sortable.handle) {
				var t59 = x35M.sortable.handle === true ? s45x : x35M.sortable.handle;
				e75M = '<div class="mbsc-lv-handle-c mbsc-lv-item-h-' + t59 + ' mbsc-lv-handle"><div class="' + G35M.handleClass + ' mbsc-lv-handle-bar-c mbsc-lv-handle">' + G35M.handleMarkup + '</div></div>';
			}
			

            k75M(D45M);
            g25M = 0;
            U45M = G35M.itemGroups || {};
            U45M.defaults = {
                swipeleft: G35M.swipeleft,
                swiperight: G35M.swiperight,
                stages: G35M.stages,
                actions: G35M.actions,
                actionsWidth: G35M.actionsWidth
            };
            u9HM.each(U45M, function(w55M, X55M) {
                X55M.swipe = X55M.swipe !== undefined ? X55M.swipe : G35M.swipe;
                X55M.stages = X55M.stages || [];
                x25M(X55M.stages, 1, true);
                x25M(X55M.stages.left, 1);
                x25M(X55M.stages.right, -1);
                if (X55M.stages.left || X55M.stages.right) {
                    X55M.stages = [].concat(X55M.stages.left || [], X55M.stages.right || []);
                }
                A25M = false;
                if (!X55M.stages.length) {
                    if (X55M.swipeleft) {
                        X55M.stages.push({
                            percent: -30,
                            action: X55M.swipeleft
                        });
                    }
                    if (X55M.swiperight) {
                        X55M.stages.push({
                            percent: 30,
                            action: X55M.swiperight
                        });
                    }
                }
                u9HM.each(X55M.stages, function(e55M, B55M) {
                    if (B55M.percent === 0) {
                        A25M = true;
                        return false;
                    }
                });
                if (!A25M) {
                    X55M.stages.push({
                        percent: 0
                    });
                }
                X55M.stages.sort(function(F55M, I55M) {
                    return F55M.percent - I55M.percent;
                });
                u9HM.each(X55M.stages, function(g55M, O55M) {
                    if (O55M.percent === 0) {
                        X55M.start = g55M;
                        return false;
                    }
                });
                if (A25M) {
                    X55M.left = X55M.right = X55M.stages[X55M.start];
                } else {
                    X55M.left = X55M.stages[X55M.start - 1] || {};
                    X55M.right = X55M.stages[X55M.start + 1] || {};
                }
                if (X55M.actions) {
                    X55M.leftMenu = X55M.actions.left || X55M.actions;
                    X55M.rightMenu = X55M.actions.right || X55M.leftMenu;
                    Q55M = '';
                    s55M = '';
                    for (T55M = 0; T55M < X55M.leftMenu.length; T55M++) {
                        Q55M += '<div ' + (X55M.leftMenu[T55M].color ? 'style="background-color: ' + X55M.leftMenu[T55M].color + '"' : '') + ' class="mbsc-lv-ic-m mbsc-lv-ic mbsc-ic mbsc-ic-' + X55M.leftMenu[T55M].icon + '">' + (X55M.leftMenu[T55M].text || '') + '</div>';
                    }
                    for (T55M = 0; T55M < X55M.rightMenu.length; ++T55M) {
                        s55M += '<div ' + (X55M.rightMenu[T55M].color ? 'style="background-color: ' + X55M.rightMenu[T55M].color + '"' : '') + ' class="mbsc-lv-ic-m mbsc-lv-ic mbsc-ic mbsc-ic-' + X55M.rightMenu[T55M].icon + '">' + (X55M.rightMenu[T55M].text || '') + '</div>';
                    }
                    if (X55M.actions.left) {
                        X55M.swipe = X55M.actions.right ? X55M.swipe : 'right';
                    }
                    if (X55M.actions.right) {
                        X55M.swipe = X55M.actions.left ? X55M.swipe : 'left';
                    }
                    X55M.icons = '<div class="mbsc-lv-multi mbsc-lv-multi-ic-left">' + Q55M + '</div><div class="mbsc-lv-multi mbsc-lv-multi-ic-right">' + s55M + '</div>';
                }
            });
            if (G35M.fixedHeader) {
                i55M = 'mbsc-lv-fixed-header' + (r45M ? ' mbsc-lv-fixed-header-ctx mbsc-lv-' + G35M.theme + (G35M.baseTheme ? ' mbsc-lv-' + G35M.baseTheme : '') : '');
                if (!c45M) {
                    c45M = u9HM('<div class="' + i55M + '"></div>');
                    if (r45M) {
                        Z45M.before(c45M);
                    } else {
                        S35M.prepend(c45M);
                    }
                    r25M = o66M.throttle(U75M, 200);
                    Z45M.on('scroll touchmove', r25M);
                } else {
                    c45M.attr('class', i55M);
                }
            }
            if (G35M.hover) {
                if (!H25M) {
                    S35M.on('mouseover.mbsc-lv', '.mbsc-lv-item', function() {
                        if (!Q45M || Q45M[0] != this) {
                            W75M();
                            Q45M = u9HM(this);
                            if (U45M[Q45M.attr('data-type') || 'defaults'].actions) {
                                v75M = setTimeout(function() {
                                    if (!k25M) {
                                        G25M = true;
                                        x35M.openActions(Q45M, I75M, H25M, false);
                                    } else {
                                        Q45M = null;
                                    }
                                }, R75M);
                            }
                        }
                    }).on('mouseleave.mbsc-lv', W75M);
                }
                H25M = G35M.hover.time || 200;
                R75M = G35M.hover.timeout || 200;
                I75M = G35M.hover.direction || G35M.hover || 'right';
            }
            if (Z75M) {
                S35M.attr('mbsc-enhance', '');
            }
            S35M.trigger('mbsc-enhance', [{
                theme: G35M.theme,
                lang: G35M.lang
            }]);
        };
        x35M._destroy = function() {
            var u55M;
            R25M.append(m45M);
            if (r45M && c45M) {
                c45M.remove();
            }
            if (Z75M) {
                D45M.attr('mbsc-enhance', '');
                u55M = U9HM.instances[S35M[0].id];
                if (u55M) {
                    u55M.destroy();
                }
            }
            o45M.removeEventListener('click', y75M, true);
            S35M.find('.mbsc-lv-txt,.mbsc-lv-img').removeClass('mbsc-lv-txt mbsc-lv-img');
            S35M.find(i45M).removeClass('mbsc-lv mbsc-lv-v mbsc-lv-root mbsc-lv-sl-curr').find(b45M).removeClass('mbsc-lv-gr-title mbsc-lv-item mbsc-lv-item-enhanced mbsc-lv-parent mbsc-lv-img-left mbsc-lv-img-right mbsc-lv-item-ic-left mbsc-lv-item-ic-right').removeAttr('data-ref');
            u9HM('.mbsc-lv-back,.mbsc-lv-handle-c,.mbsc-lv-arr,.mbsc-lv-item-ic', S35M).remove();
            D45M.insertAfter(S35M);
            S35M.remove();
            p45M.remove();
            Z45M.off('orientationchange resize', d75M);
            if (r25M) {
                Z45M.off('scroll touchmove', r25M);
            }
        };
        var i25M, F25M = [],
            v45M = [],
            W25M = [],
            u45M = 0;
        x35M.startActionTrack = function() {
            if (!u45M) {
                W25M = [];
            }
            u45M++;
        };
        x35M.endActionTrack = function() {
            u45M--;
            if (!u45M) {
                v45M.push(W25M);
            }
        };
        x35M.addUndoAction = function(U55M, j55M) {
            var J55M = {
                action: U55M,
                async: j55M
            };
            if (u45M) {
                W25M.push(J55M);
            } else {
                v45M.push([J55M]);
                if (v45M.length > G35M.undoLimit) {
                    v45M.shift();
                }
            }
        };
        x35M.undo = function() {
            function S55M() {
                if (L55M < 0) {
                    i25M = false;
                    d95M();
                } else {
                    x55M = G55M[L55M];
                    L55M--;
                    if (x55M.async) {
                        x55M.action(S55M);
                    } else {
                        x55M.action();
                        S55M();
                    }
                }
            }

            function d95M() {
                G55M = F25M.shift();
                if (G55M) {
                    i25M = true;
                    L55M = G55M.length - 1;
                    S55M();
                }
            }
            var x55M, L55M, G55M;
            if (v45M.length) {
                F25M.push(v45M.pop());
            }
            if (!i25M) {
                d95M();
            }
        };
        G35M = x35M.settings;
        t45M = x35M.trigger;
        x35M.init(n75M);
    };
    l46M.prototype = {
        _class: 'listview',
        _hasDef: true,
        _hasTheme: true,
        _hasLang: true,
        _defaults: {
            context: 'body',
            actionsWidth: 90,
            sortDelay: 250,
            undoLimit: 10,
            swipe: true,
            quickSwipe: true,
            animateIcons: true,
            animation: true,
            revert: true,
            vibrate: true,
            handleClass: '',
            handleMarkup: '<div class="mbsc-lv-handle-bar mbsc-lv-handle"></div><div class="mbsc-lv-handle-bar mbsc-lv-handle"></div><div class="mbsc-lv-handle-bar mbsc-lv-handle"></div>',
            listNode: 'ul',
            listSelector: 'ul,ol',
            itemNode: 'li',
            itemSelector: 'li',
            leftArrowClass: 'mbsc-ic-arrow-left4',
            rightArrowClass: 'mbsc-ic-arrow-right4',
            backText: 'Back',
            undoText: 'Undo',
            stages: []
        }
    };
    q76M.ListView = l46M;
    U9HM.themes.listview.mobiscroll = {
        leftArrowClass: 'mbsc-ic-arrow-left5',
        rightArrowClass: 'mbsc-ic-arrow-right5'
    };
    U9HM.presetShort('listview', 'ListView');
    var A76M = this && this.__extends || function() {
        var M95M = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(Z95M, p95M) {
            Z95M.__proto__ = p95M;
        } || function(t95M, D95M) {
            for (var N95M in D95M) {
                if (D95M.hasOwnProperty(N95M)) t95M[N95M] = D95M[N95M];
            }
        };
        return function(q95M, h95M) {
            function o95M() {
                this.constructor = q95M;
            }
            M95M(q95M, h95M);
            q95M.prototype = h95M === null ? Object.create(h95M) : (o95M.prototype = h95M.prototype, new o95M());
        };
    }();
    var e36M = function() {
        function Y95M() {
            this.addSubject = new P46M.Subject();
            this.removeSubject = new P46M.Subject();
        }
        Y95M.prototype.notifyAdded = function(n95M) {
            this.addSubject.next(n95M);
        };
        Y95M.prototype.notifyRemoved = function(C95M) {
            this.removeSubject.next(C95M);
        };
        Y95M.prototype.onItemAdded = function() {
            return this.addSubject.asObservable();
        };
        Y95M.prototype.onItemRemoved = function() {
            return this.removeSubject.asObservable();
        };
        Y95M.decorators = [{
            type: J9HM.Injectable
        }];
        Y95M.ctorParameters = function() {
            return [];
        };
        return Y95M;
    }();
    var V76M = function() {
        function W95M(m95M, y95M) {
            this.elem = m95M;
            this.lvService = y95M;
        }
        Object.defineProperty(W95M.prototype, "Index", {
            get: function a95M() {
                var E95M = u9HM(this.elem.nativeElement);
                var P95M = E95M.parent().children('mbsc-listview-item, mbsc-listview-header').not('.mbsc-lv-back').index(E95M);
                return P95M;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(W95M.prototype, "Element", {
            get: function K95M() {
                return u9HM(this.elem.nativeElement);
            },
            enumerable: true,
            configurable: true
        });
        W95M.prototype.ngAfterViewInit = function() {
            this.lvService.notifyAdded(this);
        };
        W95M.prototype.ngOnDestroy = function() {
            this.lvService.notifyRemoved(this);
        };
        W95M.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-listview-item',
                template: '<ng-content></ng-content>',
                host: {
                    '[@itemAddRemove]': '',
                    '[attr.data-id]': 'id',
                    '[attr.data-icon]': 'icon',
                    '[attr.data-icon-align]': 'iconAlign',
                    '[attr.data-type]': 'type'
                },
                animations: [M66M.trigger('itemAddRemove', [M66M.state('*', M66M.style({
                    color: '*'
                })), M66M.state('void', M66M.style({
                    color: '*'
                })), M66M.transition('void => *', M66M.animate('1s')), M66M.transition('* => void', M66M.animate('1s'))])]
            }]
        }];
        W95M.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: e36M
            }];
        };
        W95M.propDecorators = {
            'id': [{
                type: J9HM.Input
            }],
            'icon': [{
                type: J9HM.Input
            }],
            'iconAlign': [{
                type: J9HM.Input,
                args: ['icon-align']
            }],
            'type': [{
                type: J9HM.Input
            }]
        };
        return W95M;
    }();
    var W76M = function() {
        function V95M(z95M) {}
        V95M.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-listview-header',
                template: '<ng-content></ng-content>',
                host: {
                    '[@itemAddRemove]': '',
                    'data-role': 'list-divider'
                },
                animations: [M66M.trigger('itemAddRemove', [M66M.state('*', M66M.style({
                    color: '*'
                })), M66M.state('void', M66M.style({
                    color: '*'
                })), M66M.transition('void => *', M66M.animate('1s')), M66M.transition('* => void', M66M.animate('1s'))])]
            }]
        }];
        V95M.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }];
        };
        return V95M;
    }();
    var D76M = function(A95M) {
        function l95M(c95M, T95M, b95M) {
            var r95M = A95M.call(this, c95M) || this;
            r95M.elem = c95M;
            r95M.zone = T95M;
            r95M.lvService = b95M;
            b95M.onItemAdded().subscribe(function(f95M) {
                if (r95M._instance) {
                    r95M._instance.add(null, f95M.Element, f95M.Index);
                }
            });
            b95M.onItemRemoved().subscribe(function(Q95M) {
                if (r95M._instance) {
                    r95M._instance.remove(Q95M.Element, undefined);
                }
            });
            return r95M;
        }
        A76M(l95M, A95M);
        l95M.prototype.ngAfterViewInit = function() {
            A95M.prototype.ngAfterViewInit.call(this);
            var s95M = j9HM({
                listNode: 'mbsc-listview',
                listSelector: 'mbsc-listview',
                itemNode: 'mbsc-listview-item',
                itemSelector: 'mbsc-listview-item, mbsc-listview-header'
            }, this.options);
            this._instance = new l46M(this.elem.nativeElement, s95M);
            this._instance.zone = this.zone;
        };
        l95M.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-listview',
                template: "<ng-content></ng-content>",
                providers: [e36M],
                exportAs: 'mobiscroll'
            }]
        }];
        l95M.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: e36M
            }];
        };
        l95M.propDecorators = {
            'options': [{
                type: J9HM.Input,
                args: ['options']
            }]
        };
        return l95M;
    }(E66M);
    var p76M = U9HM.classes;
    var c76M = 1;
    var y46M = function k95M(L95M, C68M) {
        function Z68M(y68M) {
            clearTimeout(Y68M);
            Y68M = setTimeout(function() {
                N68M(y68M.type !== 'load');
            }, 200);
        }

        function U95M(a68M, K68M) {
            if (!a68M.length) {
                return;
            }
            var V68M = a68M.offset().left,
                E68M = a68M[0].offsetLeft,
                P68M = a68M[0].offsetWidth,
                z68M = H95M.offset().left;
            w95M = a68M;
            if (K68M === undefined) {
                K68M = !g95M;
            }
            if (M68M && K68M) {
                if (g95M) {
                    if (a68M.attr('data-selected') == 'true') {
                        j95M(a68M);
                    } else {
                        D68M(a68M);
                    }
                } else {
                    j95M(u9HM('.mbsc-ms-item-sel', X95M));
                    D68M(a68M);
                }
            }
            if (u95M) {
                E68M = J95M - E68M - P68M;
            }
            if (o68M == 'a') {
                if (V68M < z68M) {
                    F95M.scroll(u95M ? E68M + P68M - R95M : -E68M, S95M, true);
                } else if (V68M + P68M > z68M + R95M) {
                    F95M.scroll(u95M ? E68M : R95M - E68M - P68M, S95M, true);
                }
            } else {
                F95M.scroll(R95M / 2 - E68M - P68M / 2, S95M, true);
            }
            if (K68M) {
                B95M('onItemTap', {
                    target: a68M[0]
                });
            }
        }

        function D68M(l68M) {
            l68M.addClass(x95M).attr('data-selected', 'true').attr('aria-selected', 'true');
        }

        function j95M(A68M) {
            A68M.removeClass(x95M).removeAttr('data-selected').removeAttr('aria-selected');
        }

        function O95M(r68M) {
            if ((typeof r68M === 'undefined' ? 'undefined' : B66M(r68M)) !== 'object') {
                r68M = X95M.children('[data-id="' + r68M + '"]');
            }
            return u9HM(r68M);
        }

        function W68M() {
            if (I95M && I95M != 'inline') {
                d68M.find('.mbsc-page').css('padding-' + I95M, '');
            }
        }

        function m68M() {
            var b68M, c68M;
            X95M.find('.mbsc-ripple').remove();
            X95M.children().each(function(v68M) {
                var k68M, T68M = u9HM(this),
                    Q68M = M68M && T68M.attr('data-selected') == 'true',
                    i68M = T68M.attr('data-disabled') == 'true',
                    s68M = T68M.attr('data-icon'),
                    f68M = T68M.attr('data-ref');
                if (!f68M) {
                    f68M = c76M++;
                }
                if (v68M === 0) {
                    t68M = T68M;
                }
                if (M68M && !g95M && Q68M) {
                    w95M = T68M;
                }
                if (s68M) {
                    b68M = true;
                }
                if (T68M.text()) {
                    c68M = true;
                }
                k68M = 'mbsc-ms-item ' + (v95M.itemClass || '') + (v95M.tapHighlight ? ' mbsc-btn-e' : '') + (Q68M ? x95M : '') + (i68M ? ' mbsc-btn-d ' + (v95M.disabledClass || '') : '') + (s68M ? ' mbsc-ms-ic mbsc-ic mbsc-ic-' + s68M : '');
                T68M.attr('data-ref', f68M).attr('data-role', 'button').attr('aria-selected', Q68M ? 'true' : 'false').attr('aria-disabled', i68M ? 'true' : 'false').removeClass(G95M[f68M]).addClass(k68M);
                G95M[f68M] = k68M;
            });
            if (b68M) {
                H95M.addClass('mbsc-ms-icons');
            } else {
                H95M.removeClass('mbsc-ms-icons');
            }
            if (c68M) {
                H95M.addClass('mbsc-ms-txt');
            } else {
                H95M.removeClass('mbsc-ms-txt');
            }
        }

        function N68M(X68M, w68M) {
            var R68M = v95M.itemWidth,
                H68M = v95M.layout;
            i95M.contWidth = R95M = H95M.width();
            if (X68M && n68M === R95M || !R95M) {
                return;
            }
            n68M = R95M;
            if (U9HM.util.isNumeric(H68M)) {
                e95M = R95M ? R95M / H68M : R68M;
                if (e95M < R68M) {
                    H68M = 'liquid';
                }
            }
            if (R68M) {
                if (H68M == 'liquid') {
                    e95M = R95M ? R95M / Math.min(Math.floor(R95M / R68M), X95M.children().length) : R68M;
                } else if (H68M == 'fixed') {
                    e95M = R68M;
                }
            }
            if (e95M) {
                X95M.children().css('width', e95M + 'px');
            }
            if (I95M != 'inline') {
                d68M.find('.mbsc-page').css('padding-' + I95M, L95M.offsetHeight + 'px');
            }
            i95M.totalWidth = J95M = L95M.offsetWidth;
            j9HM(F95M.settings, {
                contSize: R95M,
                maxSnapScroll: v95M.paging ? 1 : false,
                maxScroll: 0,
                minScroll: J95M > R95M ? R95M - J95M : 0,
                snap: v95M.paging ? R95M : v95M.snap ? e95M || '.mbsc-ms-item' : false,
                elastic: J95M > R95M ? e95M || R95M : false
            });
            F95M.refresh(w68M);
        }
        var w95M, H95M, d68M, t68M, h68M, p68M, R95M, I95M, e95M, g95M, n68M, Y68M, u95M, M68M, x95M, F95M, o68M, v95M, J95M, q68M, B95M, G95M = {},
            S95M = 1000,
            i95M = this,
            X95M = u9HM(L95M);
        p76M.Base.call(this, L95M, C68M, true);
        i95M.navigate = function(B68M, e68M) {
            U95M(O95M(B68M), e68M);
        };
        i95M.next = function(I68M) {
            var F68M = w95M ? w95M.next() : t68M;
            if (F68M.length) {
                w95M = F68M;
                U95M(w95M, I68M);
            }
        };
        i95M.prev = function(O68M) {
            var g68M = w95M ? w95M.prev() : t68M;
            if (g68M.length) {
                w95M = g68M;
                U95M(w95M, O68M);
            }
        };
        i95M.select = function(u68M) {
            if (!g95M) {
                j95M(u9HM('.mbsc-ms-item-sel', X95M));
            }
            D68M(O95M(u68M));
        };
        i95M.deselect = function(J68M) {
            j95M(O95M(J68M));
        };
        i95M.enable = function(U68M) {
            O95M(U68M).removeClass('mbsc-btn-d').removeAttr('data-disabled').removeAttr('aria-disabled');
        };
        i95M.disable = function(j68M) {
            O95M(j68M).addClass('mbsc-btn-d').attr('data-disabled', 'true').attr('aria-disabled', 'true');
        };
        i95M.refresh = i95M.position = function(x68M) {
            m68M();
            N68M(false, x68M);
        };
        i95M._init = function() {
            d68M = u9HM(v95M.context);
            h68M = u9HM(v95M.context == 'body' ? window : v95M.context);
            W68M();
            I95M = v95M.display;
            u95M = v95M.rtl;
          
		    if (v95M.type == 'tabs') {
				v95M.select = v95M.select || 'single';
				v95M.variant = v95M.variant || 'b';
			} else if (v95M.type == 'options') {
				v95M.select = v95M.select || 'multiple';
				v95M.variant = v95M.variant || 'a';
			} else if (v95M.type == 'menu') {
				v95M.select = v95M.select || 'off';
				v95M.variant = v95M.variant || 'a';
			}
			if (v95M.itemWidth && v95M.snap === b7z) {
				v95M.snap = true;
			}
		  
            o68M = v95M.variant;
            M68M = v95M.select != 'off';
            g95M = v95M.select == 'multiple';
            x95M = ' mbsc-ms-item-sel ' + (v95M.activeClass || '');
            p68M = 'mbsc-ms-c' + ' mbsc-ms-' + o68M + ' mbsc-ms-' + v95M.display + ' mbsc-' + v95M.theme + ' ' + (v95M.baseTheme ? ' mbsc-' + v95M.baseTheme : '') + ' ' + (v95M.cssClass || '') + ' ' + (v95M.wrapperClass || '') + (u95M ? ' mbsc-ms-rtl' : ' mbsc-ms-ltr') + (v95M.itemWidth ? ' mbsc-ms-hasw' : '') + (v95M.context == 'body' ? '' : ' mbsc-ms-ctx') + (M68M ? '' : ' mbsc-ms-nosel');
            if (!H95M) {
                H95M = u9HM('<div class="' + p68M + '"><div class="mbsc-ms-sc"></div></div>').insertAfter(X95M);
                H95M.find('.mbsc-ms-sc').append(X95M);
                F95M = new s36M(H95M[0], {
                    axis: 'X',
                    contSize: 0,
                    maxScroll: 0,
                    maxSnapScroll: 1,
                    minScroll: 0,
                    snap: 1,
                    elastic: 1,
                    rtl: u95M,
                    mousewheel: v95M.mousewheel,
                    thresholdX: v95M.threshold,
                    onStart: function L68M(G68M) {
                        if (!q68M && G68M.domEvent.type == 'touchstart') {
                            q68M = true;
                            d68M.find('.mbsc-no-touch').removeClass('mbsc-no-touch');
                        }
                    },
                    onBtnTap: function S68M(d38M) {
                        U95M(u9HM(d38M.target), true);
                    },
                    onGestureStart: function M38M(Z38M) {
                        B95M('onGestureStart', Z38M);
                    },
                    onGestureEnd: function p38M(N38M) {
                        B95M('onGestureEnd', N38M);
                    },
                    onMove: function D38M(t38M) {
                        B95M('onMove', t38M);
                    },
                    onAnimationStart: function h38M(q38M) {
                        B95M('onAnimationStart', q38M);
                    },
                    onAnimationEnd: function o38M(Y38M) {
                        B95M('onAnimationEnd', Y38M);
                    }
                });
            } else {
                H95M.attr('class', p68M);
                X95M.off('.mbsc-ripple');
            }
            X95M.css('display', '').addClass('mbsc-ms ' + (v95M.groupClass || ''));
            m68M();
            B95M('onMarkupReady', {
                target: H95M[0]
            });
            N68M();
            H95M.find('img').on('load', Z68M);
            h68M.on('orientationchange resize', Z68M);
        };
        i95M._destroy = function() {
            W68M();
            h68M.off('orientationchange resize', Z68M);
            X95M.removeClass('mbsc-ms mbsc-ms-a mbsc-ms-b').insertAfter(H95M).find('.mbsc-ms-item').each(function() {
                var n38M = u9HM(this);
                n38M.width('').removeClass(G95M[n38M.attr('data-ref')]);
            });
            H95M.remove();
            F95M.destroy();
        };
        v95M = i95M.settings;
        B95M = i95M.trigger;
        i95M.init(C68M);
    };
    y46M.prototype = {
        _class: 'menustrip',
        _hasDef: true,
        _hasTheme: true,
        _hasLang: true,
        _defaults: {
            context: 'body',
            type: 'options',
            display: 'inline',
            layout: 'liquid',
            tapHighlight: true
        }
    };
    p76M.MenuStrip = y46M;
    U9HM.presetShort('menustrip', 'MenuStrip');
    var f76M = this && this.__extends || function() {
        var C38M = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(W38M, m38M) {
            W38M.__proto__ = m38M;
        } || function(E38M, a38M) {
            for (var y38M in a38M) {
                if (a38M.hasOwnProperty(y38M)) E38M[y38M] = a38M[y38M];
            }
        };
        return function(K38M, P38M) {
            function V38M() {
                this.constructor = K38M;
            }
            C38M(K38M, P38M);
            K38M.prototype = P38M === null ? Object.create(P38M) : (V38M.prototype = P38M.prototype, new V38M());
        };
    }();
    var O36M = function() {
        function z38M() {
            this._instanceSubject = new P46M.Subject();
        }
        z38M.prototype.notifyInstanceRead = function(l38M) {
            this._instanceSubject.next(l38M);
        };
        z38M.prototype.onInstanceReady = function() {
            return this._instanceSubject.asObservable();
        };
        z38M.decorators = [{
            type: J9HM.Injectable
        }];
        z38M.ctorParameters = function() {
            return [];
        };
        return z38M;
    }();
    var D46M = function() {
        function A38M(b38M, c38M) {
            var r38M = this;
            this._menustripService = b38M;
            this._elem = c38M;
            this.selectedChange = new J9HM.EventEmitter();
            this._instance = undefined;
            this._menustripService.onInstanceReady().subscribe(function(T38M) {
                r38M._instance = T38M;
            });
        }
        Object.defineProperty(A38M.prototype, "disabled", {
            get: function f38M() {
                return this._disabled;
            },
            set: function Q38M(s38M) {
                this._disabled = s38M;
                if (this._instance) {
                    if (this._disabled) {
                        this._instance.disable(this._elem.nativeElement);
                    } else {
                        this._instance.enable(this._elem.nativeElement);
                    }
                }
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(A38M.prototype, "selected", {
            get: function k38M() {
                return this._selected;
            },
            set: function i38M(v38M) {
                this._selected = v38M;
                if (this._instance) {
                    if (this._selected) {
                        this._instance.select(this._elem.nativeElement);
                    } else {
                        this._instance.deselect(this._elem.nativeElement);
                    }
                }
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(A38M.prototype, "nativeElement", {
            get: function R38M() {
                return this._elem.nativeElement;
            },
            enumerable: true,
            configurable: true
        });
        A38M.prototype.toggle = function() {
            this._selected = !this._selected;
            this.selectedChange.emit(this._selected);
        };
        A38M.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-menustrip-item',
                template: '<div><ng-content></ng-content></div>',
                host: {
                    '[attr.data-icon]': 'icon',
                    '[attr.data-disabled]': 'disabled',
                    '[attr.data-selected]': 'selected'
                }
            }]
        }];
        A38M.ctorParameters = function() {
            return [{
                type: O36M
            }, {
                type: J9HM.ElementRef
            }];
        };
        A38M.propDecorators = {
            'icon': [{
                type: J9HM.Input
            }],
            'disabled': [{
                type: J9HM.Input
            }],
            'selected': [{
                type: J9HM.Input
            }],
            'selectedChange': [{
                type: J9HM.Output
            }]
        };
        return A38M;
    }();
    var T26M = function(X38M) {
        function H38M(B38M, e38M, F38M) {
            var w38M = X38M.call(this, B38M) || this;
            w38M.zone = e38M;
            w38M._menustripService = F38M;
            return w38M;
        }
        f76M(H38M, X38M);
        H38M.prototype.ngAfterViewInit = function() {
            var I38M = this;
            X38M.prototype.ngAfterViewInit.call(this);
            var g38M = this.tapHandler.bind(this);
            if (this.options && this.options.onItemTap) {
                g38M = function u38M(J38M, U38M) {
                    I38M.tapHandler(J38M, U38M);
                    I38M.options.onItemTap(J38M, U38M);
                };
            }
            var O38M = j9HM({}, this.options, {
                onItemTap: g38M
            });
            this._instance = new y46M(this.rootElem.nativeElement, O38M);
            this._instance.zone = this.zone;
            this._menustripService.notifyInstanceRead(this._instance);
        };
        H38M.prototype.tapHandler = function(x38M, L38M) {
            var G38M = L38M && L38M.settings.select || 'multiple';
            switch (G38M) {
                case 'multiple':
                    {
                        var j38M = this._getItem(x38M.target);j38M.toggle();
                        break;
                    }
                case 'single':
                    {
                        var j38M = this._getItem(x38M.target);
                        if (j38M && !j38M.selected) {
                            this.items.forEach(function(S38M) {
                                if (S38M.selected) {
                                    S38M.toggle();
                                }
                            });
                            j38M.toggle();
                        }
                    }
            }
        };
        H38M.prototype._getItem = function(d48M) {
            return this.items.find(function(M48M) {
                return M48M.nativeElement === d48M;
            });
        };
        H38M.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-menustrip',
                template: '<div #rootElement><ng-content></ng-content></div>',
                providers: [O36M],
                exportAs: 'mobiscroll'
            }]
        }];
        H38M.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: O36M
            }];
        };
        H38M.propDecorators = {
            'options': [{
                type: J9HM.Input,
                args: ['options']
            }],
            'rootElem': [{
                type: J9HM.ViewChild,
                args: ['rootElement']
            }],
            'items': [{
                type: J9HM.ContentChildren,
                args: [D46M]
            }]
        };
        return H38M;
    }(E66M);
    var i76M = {
        batch: 50,
        min: 0,
        max: 100,
        defaultUnit: '',
        units: null,
        unitNames: null,
        invalid: [],
        sign: false,
        step: 0.05,
        scale: 2,
        convert: function Z48M(p48M) {
            return p48M;
        },
        signText: '&nbsp;',
        wholeText: 'Whole',
        fractionText: 'Fraction',
        unitText: 'Unit'
    };
    U9HM.presets.scroller.measurement = function(z48M) {
        function j48M(G48M) {
            return Math.max(n48M, Math.min(P48M, h48M ? G48M < 0 ? Math.ceil(G48M) : Math.floor(G48M) : e48M(Math.round(G48M - i48M), a48M) + i48M));
        }

        function w48M(S48M) {
            return h48M ? e48M((Math.abs(S48M) - Math.abs(j48M(S48M))) * b48M - v48M, a48M) + v48M : 0;
        }

        function k48M(d28M) {
            var M28M = j48M(d28M),
                Z28M = w48M(d28M),
                p28M = d28M < 0 ? '-' : '+';
            if (Z28M >= b48M) {
                if (d28M < 0) {
                    M28M--;
                } else {
                    M28M++;
                }
                Z28M = 0;
            }
            return [p28M, M28M, Z28M];
        }

        function u48M(N28M) {
            var D28M = +N28M[o48M],
                t28M = h48M ? N28M[K48M] / b48M * (D28M < 0 ? -1 : 1) : 0;
            return (t48M && N28M[0] == '-' ? -1 : 1) * (D28M + t28M);
        }

        function e48M(q28M, h28M) {
            return Math.round(q28M / h28M) * h28M;
        }

        function L48M(o28M, Y28M) {
            o28M = o28M + '';
            while (o28M.length < Y28M) {
                o28M = '0' + o28M;
            }
            return o28M;
        }

        function r48M(n28M, C28M, W28M) {
            if (C28M === W28M || !N48M.convert) {
                return n28M;
            }
            return N48M.convert.call(this, n28M, C28M, W28M);
        }

        function g48M(m28M, y28M, a28M) {
            m28M = m28M > a28M ? a28M : m28M;
            m28M = m28M < y28M ? y28M : m28M;
            return m28M;
        }

        function F48M(K28M) {
            var E28M, P28M;
            y48M = r48M(N48M.min, V48M, K28M);
            m48M = r48M(N48M.max, V48M, K28M);
            if (h48M) {
                n48M = y48M < 0 ? Math.ceil(y48M) : Math.floor(y48M);
                P48M = m48M < 0 ? Math.ceil(m48M) : Math.floor(m48M);
                I48M = w48M(y48M);
                B48M = w48M(m48M);
            } else {
                n48M = Math.round(y48M);
                P48M = Math.round(m48M);
                P48M = n48M + Math.floor((P48M - n48M) / a48M) * a48M;
                i48M = n48M % a48M;
            }
            E28M = n48M;
            P28M = P48M;
            if (t48M) {
                P28M = Math.abs(E28M) > Math.abs(P28M) ? Math.abs(E28M) : Math.abs(P28M);
                E28M = E28M < 0 ? 0 : E28M;
            }
            A48M.min = E28M < 0 ? Math.ceil(E28M / Y48M) : Math.floor(E28M / Y48M);
            A48M.max = P28M < 0 ? Math.ceil(P28M / Y48M) : Math.floor(P28M / Y48M);
        }

        function U48M(V28M) {
            return u48M(V28M).toFixed(h48M ? H48M : 0) + (W48M ? ' ' + f48M[V28M[T48M]] : '');
        }
        var x48M = j9HM({}, z48M.settings),
            N48M = j9HM(z48M.settings, i76M, x48M),
            s48M = {},
            c48M = [
                []
            ],
            E48M = {},
            A48M = {},
            Q48M = {},
            X48M = [],
            t48M = N48M.sign,
            W48M = N48M.units && N48M.units.length,
            V48M = W48M ? N48M.defaultUnit || N48M.units[0] : '',
            f48M = [],
            h48M = N48M.step < 1,
            Y48M = N48M.step > 1 ? N48M.step : 1,
            H48M = h48M ? Math.max(N48M.scale, (N48M.step + '').split('.')[1].length) : 1,
            b48M = Math.pow(10, H48M),
            a48M = Math.round(h48M ? N48M.step * b48M : N48M.step),
            J48M, q48M, l48M, O48M = -1,
            K48M, o48M, T48M, y48M, m48M, n48M, P48M, I48M, B48M, i48M = 0,
            v48M = 0,
            R48M, D48M, C48M = 0;
        z48M.setVal = function(z28M, l28M, A28M, r28M, b28M) {
            z48M._setVal(u9HM.isArray(z28M) ? U48M(z28M) : z28M, l28M, A28M, r28M, b28M);
        };
        if (N48M.units) {
            for (D48M = 0; D48M < N48M.units.length; ++D48M) {
                R48M = N48M.units[D48M];
                f48M.push(N48M.unitNames ? N48M.unitNames[R48M] || R48M : R48M);
            }
        }
        if (t48M) {
            t48M = false;
            if (W48M) {
                for (D48M = 0; D48M < N48M.units.length; D48M++) {
                    if (r48M(N48M.min, V48M, N48M.units[D48M]) < 0) {
                        t48M = true;
                    }
                }
            } else {
                t48M = N48M.min < 0;
            }
        }
        if (t48M) {
            c48M[0].push({
                data: ['-', '+'],
                label: N48M.signText
            });
            O48M = C48M++;
        }
        A48M = {
            label: N48M.wholeText,
            data: function c28M(T28M) {
                return n48M % Y48M + T28M * Y48M;
            },
            getIndex: function f28M(Q28M) {
                return Math.round((Q28M - n48M % Y48M) / Y48M);
            }
        };
        c48M[0].push(A48M);
        o48M = C48M++;
        F48M(V48M);
        if (h48M) {
            c48M[0].push(Q48M);
            Q48M.data = [];
            Q48M.label = N48M.fractionText;
            for (D48M = v48M; D48M < b48M; D48M += a48M) {
                X48M.push(D48M);
                Q48M.data.push({
                    value: D48M,
                    display: '.' + L48M(D48M, H48M)
                });
            }
            K48M = C48M++;
            J48M = Math.ceil(100 / a48M);
            if (N48M.invalid && N48M.invalid.length) {
                u9HM.each(N48M.invalid, function(i28M, k28M) {
                    var s28M = k28M > 0 ? Math.floor(k28M) : Math.ceil(k28M);
                    if (s28M === 0) {
                        s28M = k28M <= 0 ? -0.001 : 0.001;
                    }
                    E48M[s28M] = (E48M[s28M] || 0) + 1;
                    if (k28M === 0) {
                        s28M = 0.001;
                        E48M[s28M] = (E48M[s28M] || 0) + 1;
                    }
                });
                u9HM.each(E48M, function(v28M, R28M) {
                    if (R28M < J48M) {
                        delete E48M[v28M];
                    } else {
                        E48M[v28M] = v28M;
                    }
                });
            }
        }
        if (W48M) {
            s48M = {
                data: [],
                label: N48M.unitText,
                cssClass: 'mbsc-msr-whl-unit',
                circular: false
            };
            for (D48M = 0; D48M < N48M.units.length; D48M++) {
                s48M.data.push({
                    value: D48M,
                    display: f48M[D48M]
                });
            }
            c48M[0].push(s48M);
        }
        T48M = C48M;
        return {
            wheels: c48M,
            minWidth: t48M && h48M ? 70 : 80,
            showLabel: false,
            formatValue: U48M,
            compClass: 'mbsc-msr',
            parseValue: function H28M(F28M) {
                var g28M = (typeof F28M === 'number' ? F28M + '' : F28M) || N48M.defaultValue,
                    I28M = (g28M + '').split(' '),
                    w28M = +I28M[0],
                    e28M = [],
                    B28M, X28M = '';
                if (W48M) {
                    X28M = u9HM.inArray(I28M[1], f48M);
                    X28M = X28M == -1 ? u9HM.inArray(V48M, N48M.units) : X28M;
                    X28M = X28M == -1 ? 0 : X28M;
                }
                l48M = W48M ? N48M.units[X28M] : '';
                F48M(l48M);
                w28M = isNaN(w28M) ? 0 : w28M;
                w28M = g48M(w28M, y48M, m48M);
                B28M = k48M(w28M);
                B28M[1] = g48M(B28M[1], n48M, P48M);
                q48M = w28M;
                if (t48M) {
                    e28M[0] = B28M[0];
                    B28M[1] = Math.abs(B28M[1]);
                }
                e28M[o48M] = B28M[1];
                if (h48M) {
                    e28M[K48M] = B28M[2];
                }
                if (W48M) {
                    e28M[T48M] = X28M;
                }
                return e28M;
            },
            onCancel: function O28M() {
                q48M = undefined;
            },
            validate: function u28M(Z78M) {
                var G28M, U28M, N78M, S28M, M78M, J28M = Z78M.values,
                    L28M = Z78M.index,
                    t78M = Z78M.direction,
                    d78M = {},
                    j28M = [],
                    p78M = {},
                    x28M = W48M ? N48M.units[J28M[T48M]] : '';
                if (t48M && L28M === 0) {
                    q48M = Math.abs(q48M) * (J28M[0] == '-' ? -1 : 1);
                }
                if (L28M === o48M || L28M === K48M && h48M || q48M === undefined || L28M === undefined) {
                    q48M = u48M(J28M);
                    l48M = x28M;
                }
                if (W48M && L28M === T48M && l48M !== x28M || L28M === undefined) {
                    F48M(x28M);
                    q48M = r48M(q48M, l48M, x28M);
                    l48M = x28M;
                    U28M = k48M(q48M);
                    if (L28M !== undefined) {
                        p78M[o48M] = A48M;
                        z48M.changeWheel(p78M);
                    }
                    if (t48M) {
                        J28M[0] = U28M[0];
                    }
                }
                j28M[o48M] = [];
                if (t48M) {
                    j28M[0] = [];
                    if (y48M > 0) {
                        j28M[0].push('-');
                        J28M[0] = '+';
                    }
                    if (m48M < 0) {
                        j28M[0].push('+');
                        J28M[0] = '-';
                    }
                    M78M = Math.abs(J28M[0] == '-' ? n48M : P48M);
                    for (C48M = M78M + Y48M; C48M < M78M + 20 * Y48M; C48M += Y48M) {
                        j28M[o48M].push(C48M);
                        d78M[C48M] = true;
                    }
                }
                q48M = g48M(q48M, y48M, m48M);
                U28M = k48M(q48M);
                N78M = t48M ? Math.abs(U28M[1]) : U28M[1];
                G28M = t48M ? J28M[0] == '-' : q48M < 0;
                J28M[o48M] = N78M;
                if (G28M) {
                    U28M[0] = '-';
                }
                if (h48M) {
                    J28M[K48M] = U28M[2];
                }
                u9HM.each(h48M ? E48M : N48M.invalid, function(Y78M, o78M) {
                    if (t48M && G28M) {
                        if (o78M <= 0) {
                            o78M = Math.abs(o78M);
                        } else {
                            return;
                        }
                    }
                    o78M = e48M(r48M(o78M, V48M, x28M), h48M ? 1 : a48M);
                    d78M[o78M] = true;
                    j28M[o48M].push(o78M);
                });
                J28M[o48M] = z48M.getValidValue(o48M, N78M, t78M, d78M);
                U28M[1] = J28M[o48M] * (t48M && G28M ? -1 : 1);
                if (h48M) {
                    j28M[K48M] = [];
                    var D78M = t48M ? J28M[0] + J28M[1] : (q48M < 0 ? '-' : '+') + Math.abs(U28M[1]),
                        q78M = (y48M < 0 ? '-' : '+') + Math.abs(n48M),
                        h78M = (m48M < 0 ? '-' : '+') + Math.abs(P48M);
                    if (D78M === q78M) {
                        u9HM(X48M).each(function(C78M, n78M) {
                            if (G28M ? n78M > I48M : n78M < I48M) {
                                j28M[K48M].push(n78M);
                            }
                        });
                    }
                    if (D78M === h78M) {
                        u9HM(X48M).each(function(m78M, W78M) {
                            if (G28M ? W78M < B48M : W78M > B48M) {
                                j28M[K48M].push(W78M);
                            }
                        });
                    }
                    u9HM.each(N48M.invalid, function(a78M, y78M) {
                        S28M = k48M(r48M(y78M, V48M, x28M));
                        if ((U28M[0] === S28M[0] || U28M[1] === 0 && S28M[1] === 0 && S28M[2] === 0) && U28M[1] === S28M[1]) {
                            j28M[K48M].push(S28M[2]);
                        }
                    });
                }
                return {
                    disabled: j28M,
                    valid: J28M
                };
            }
        };
    };
    U9HM.presetShort('measurement');
    var l26M = U9HM.presets.scroller;
    var R76M = {
        min: -20,
        max: 40,
        defaultUnit: 'c',
        units: ['c', 'k', 'f', 'r'],
        unitNames: {
            c: '°C',
            k: 'K',
            f: '°F',
            r: '°R'
        }
    };
    var H76M = {
        c2k: function E78M(P78M) {
            return P78M + 273.15;
        },
        c2f: function K78M(V78M) {
            return V78M * 9 / 5 + 32;
        },
        c2r: function z78M(l78M) {
            return (l78M + 273.15) * 9 / 5;
        },
        k2c: function A78M(r78M) {
            return r78M - 273.15;
        },
        k2f: function b78M(c78M) {
            return c78M * 9 / 5 - 459.67;
        },
        k2r: function T78M(f78M) {
            return f78M * 9 / 5;
        },
        f2c: function Q78M(s78M) {
            return (s78M - 32) * 5 / 9;
        },
        f2k: function k78M(i78M) {
            return (i78M + 459.67) * 5 / 9;
        },
        f2r: function v78M(R78M) {
            return R78M + 459.67;
        },
        r2c: function H78M(X78M) {
            return (X78M - 491.67) * 5 / 9;
        },
        r2k: function w78M(B78M) {
            return B78M * 5 / 9;
        },
        r2f: function e78M(F78M) {
            return F78M - 459.67;
        }
    };
    U9HM.presetShort('temperature');
    l26M.temperature = function(I78M) {
        var g78M = j9HM({}, R76M, I78M.settings);
        j9HM(I78M.settings, g78M, {
            sign: true,
            convert: function O78M(u78M, J78M, U78M) {
                return H76M[J78M + '2' + U78M](u78M);
            }
        });
        return l26M.measurement.call(this, I78M);
    };
    var y26M = U9HM.presets.scroller;
    var w76M = {
        min: 0,
        max: 100,
        defaultUnit: 'km',
        units: ['m', 'km', 'in', 'ft', 'yd', 'mi']
    };
    var Y26M = {
        mm: 0.001,
        cm: 0.01,
        dm: 0.1,
        m: 1,
        dam: 10,
        hm: 100,
        km: 1000,
        'in': 0.0254,
        ft: 0.3048,
        yd: 0.9144,
        ch: 20.1168,
        fur: 201.168,
        mi: 1609.344,
        lea: 4828.032
    };
    U9HM.presetShort('distance');
    y26M.distance = function(j78M) {
        var x78M = j9HM({}, w76M, j78M.settings);
        j9HM(j78M.settings, x78M, {
            sign: false,
            convert: function L78M(G78M, S78M, d18M) {
                return G78M * Y26M[S78M] / Y26M[d18M];
            }
        });
        return y26M.measurement.call(this, j78M);
    };
    var q26M = U9HM.presets.scroller;
    var F76M = {
        min: 0,
        max: 100,
        defaultUnit: 'kph',
        units: ['kph', 'mph', 'mps', 'fps', 'knot'],
        unitNames: {
            kph: 'km/h',
            mph: 'mi/h',
            mps: 'm/s',
            fps: 'ft/s',
            knot: 'knot'
        }
    };
    var S46M = {
        kph: 1,
        mph: 1.60934,
        mps: 3.6,
        fps: 1.09728,
        knot: 1.852
    };
    U9HM.presetShort('speed');
    q26M.speed = function(M18M) {
        var Z18M = j9HM({}, F76M, M18M.settings);
        j9HM(M18M.settings, Z18M, {
            sign: false,
            convert: function p18M(N18M, D18M, t18M) {
                return N18M * S46M[D18M] / S46M[t18M];
            }
        });
        return q26M.measurement.call(this, M18M);
    };
    var G46M = U9HM.presets.scroller;
    var O76M = {
        min: 0,
        max: 100,
        defaultUnit: 'N',
        units: ['N', 'kp', 'lbf', 'pdl']
    };
    var x46M = {
        N: 1,
        kp: 9.80665,
        lbf: 4.448222,
        pdl: 0.138255
    };
    U9HM.presetShort('force');
    G46M.force = function(h18M) {
        var q18M = j9HM({}, O76M, h18M.settings);
        j9HM(h18M.settings, q18M, {
            sign: false,
            convert: function o18M(Y18M, n18M, C18M) {
                return Y18M * x46M[n18M] / x46M[C18M];
            }
        });
        return G46M.measurement.call(this, h18M);
    };
    var U46M = U9HM.presets.scroller;
    var U76M = {
        min: 0,
        max: 1000,
        defaultUnit: 'kg',
        units: ['g', 'kg', 'oz', 'lb'],
        unitNames: {
            tlong: 't (long)',
            tshort: 't (short)'
        }
    };
    var O46M = {
        mg: 0.001,
        cg: 0.01,
        dg: 0.1,
        g: 1,
        dag: 10,
        hg: 100,
        kg: 1000,
        t: 1000000,
        drc: 1.7718452,
        oz: 28.3495,
        lb: 453.59237,
        st: 6350.29318,
        qtr: 12700.58636,
        cwt: 50802.34544,
        tlong: 1016046.9088,
        tshort: 907184.74
    };
    U9HM.presetShort('mass');
    U46M.mass = function(W18M) {
        var m18M = j9HM({}, U76M, W18M.settings);
        j9HM(W18M.settings, m18M, {
            sign: false,
            convert: function y18M(a18M, E18M, P18M) {
                return a18M * O46M[E18M] / O46M[P18M];
            }
        });
        return U46M.measurement.call(this, W18M);
    };
    var f66M = this && this.__extends || function() {
        var K18M = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(V18M, z18M) {
            V18M.__proto__ = z18M;
        } || function(r18M, A18M) {
            for (var l18M in A18M) {
                if (A18M.hasOwnProperty(l18M)) r18M[l18M] = A18M[l18M];
            }
        };
        return function(c18M, b18M) {
            function T18M() {
                this.constructor = c18M;
            }
            K18M(c18M, b18M);
            c18M.prototype = b18M === null ? Object.create(b18M) : (T18M.prototype = b18M.prototype, new T18M());
        };
    }();
    var r66M = function(Q18M) {
        function f18M(k18M, i18M, v18M, R18M) {
            var s18M = Q18M.call(this, k18M, i18M, v18M, R18M) || this;
            s18M.preset = 'measurement';
            s18M.onChangeEmitter = new J9HM.EventEmitter();
            return s18M;
        }
        f66M(f18M, Q18M);
        Object.defineProperty(f18M.prototype, "value", {
            set: function H18M(X18M) {
                this.setNewValueProxy(X18M);
            },
            enumerable: true,
            configurable: true
        });
        f18M.prototype.setNewValue = function(w18M) {
            if (this._instance) {
                var B18M = this._instance.getVal();
                if (B18M !== w18M) {
                    this._instance.setVal(w18M, true, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        f18M.prototype.ngAfterViewInit = function() {
            Q18M.prototype.ngAfterViewInit.call(this);
            var e18M = j9HM({
                preset: this.preset
            }, this.options, this.optionExtensions);
            this._instance = new N66M(this.element, e18M);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        f18M.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-measurement']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-measurementChange']
            }]
        };
        return f18M;
    }(S9HM);
    var B46M = function(I18M) {
        function F18M(g18M, O18M, u18M, J18M) {
            return I18M.call(this, g18M, O18M, u18M, J18M) || this;
        }
        f66M(F18M, I18M);
        F18M.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-measurement]',
                exportAs: 'mobiscroll'
            }]
        }];
        F18M.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        return F18M;
    }(r66M);
    var w46M = function(j18M) {
        function U18M(L18M, G18M, S18M, d88M) {
            var x18M = j18M.call(this, L18M, G18M, S18M, d88M) || this;
            x18M.onChangeEmitter = new J9HM.EventEmitter();
            x18M.preset = 'temperature';
            return x18M;
        }
        f66M(U18M, j18M);
        Object.defineProperty(U18M.prototype, "value", {
            set: function M88M(Z88M) {
                this.setNewValueProxy(Z88M);
            },
            enumerable: true,
            configurable: true
        });
        U18M.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-temperature]',
                exportAs: 'mobiscroll'
            }]
        }];
        U18M.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        U18M.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-temperature']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-temperatureChange']
            }]
        };
        return U18M;
    }(r66M);
    var X46M = function(N88M) {
        function p88M(t88M, h88M, q88M, o88M) {
            var D88M = N88M.call(this, t88M, h88M, q88M, o88M) || this;
            D88M.onChangeEmitter = new J9HM.EventEmitter();
            D88M.preset = 'distance';
            return D88M;
        }
        f66M(p88M, N88M);
        Object.defineProperty(p88M.prototype, "value", {
            set: function Y88M(n88M) {
                this.setNewValueProxy(n88M);
            },
            enumerable: true,
            configurable: true
        });
        p88M.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-distance]',
                exportAs: 'mobiscroll'
            }]
        }];
        p88M.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        p88M.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-distance']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-distanceChange']
            }]
        };
        return p88M;
    }(r66M);
    var H46M = function(W88M) {
        function C88M(y88M, a88M, E88M, P88M) {
            var m88M = W88M.call(this, y88M, a88M, E88M, P88M) || this;
            m88M.onChangeEmitter = new J9HM.EventEmitter();
            m88M.preset = 'speed';
            return m88M;
        }
        f66M(C88M, W88M);
        Object.defineProperty(C88M.prototype, "value", {
            set: function K88M(V88M) {
                this.setNewValueProxy(V88M);
            },
            enumerable: true,
            configurable: true
        });
        C88M.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-speed]',
                exportAs: 'mobiscroll'
            }]
        }];
        C88M.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        C88M.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-speed']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-speedChange']
            }]
        };
        return C88M;
    }(r66M);
    var R46M = function(l88M) {
        function z88M(r88M, b88M, c88M, T88M) {
            var A88M = l88M.call(this, r88M, b88M, c88M, T88M) || this;
            A88M.onChangeEmitter = new J9HM.EventEmitter();
            A88M.preset = 'force';
            return A88M;
        }
        f66M(z88M, l88M);
        Object.defineProperty(z88M.prototype, "value", {
            set: function f88M(Q88M) {
                this.setNewValueProxy(Q88M);
            },
            enumerable: true,
            configurable: true
        });
        z88M.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-force]',
                exportAs: 'mobiscroll'
            }]
        }];
        z88M.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        z88M.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-force']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-forceChange']
            }]
        };
        return z88M;
    }(r66M);
    var k46M = function(k88M) {
        function s88M(v88M, R88M, H88M, X88M) {
            var i88M = k88M.call(this, v88M, R88M, H88M, X88M) || this;
            i88M.onChangeEmitter = new J9HM.EventEmitter();
            i88M.preset = 'mass';
            return i88M;
        }
        f66M(s88M, k88M);
        Object.defineProperty(s88M.prototype, "value", {
            set: function w88M(B88M) {
                this.setNewValueProxy(B88M);
            },
            enumerable: true,
            configurable: true
        });
        s88M.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-mass]',
                exportAs: 'mobiscroll'
            }]
        }];
        s88M.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        s88M.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-mass']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-massChange']
            }]
        };
        return s88M;
    }(r66M);
    U9HM.presets.scroller.number = U9HM.presets.scroller.measurement;
    U9HM.presetShort('number');
    var N16M = this && this.__extends || function() {
        var e88M = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(F88M, I88M) {
            F88M.__proto__ = I88M;
        } || function(u88M, O88M) {
            for (var g88M in O88M) {
                if (O88M.hasOwnProperty(g88M)) u88M[g88M] = O88M[g88M];
            }
        };
        return function(U88M, J88M) {
            function j88M() {
                this.constructor = U88M;
            }
            e88M(U88M, J88M);
            U88M.prototype = J88M === null ? Object.create(J88M) : (j88M.prototype = J88M.prototype, new j88M());
        };
    }();
    var T46M = function(L88M) {
        function x88M(S88M, d08M, M08M, Z08M) {
            var G88M = L88M.call(this, S88M, d08M, M08M, Z08M) || this;
            G88M.onChangeEmitter = new J9HM.EventEmitter();
            return G88M;
        }
        N16M(x88M, L88M);
        Object.defineProperty(x88M.prototype, "value", {
            set: function p08M(N08M) {
                this.setNewValueProxy(N08M);
            },
            enumerable: true,
            configurable: true
        });
        x88M.prototype.setNewValue = function(D08M) {
            if (this._instance) {
                var t08M = this._instance.getVal();
                if (t08M !== D08M) {
                    this._instance.setVal(D08M, true, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        x88M.prototype.ngAfterViewInit = function() {
            L88M.prototype.ngAfterViewInit.call(this);
            var h08M = j9HM({
                preset: 'number'
            }, this.options, this.optionExtensions);
            this._instance = new N66M(this.element, h08M);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        x88M.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-number]',
                exportAs: 'mobiscroll'
            }]
        }];
        x88M.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        x88M.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-number']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-numberChange']
            }]
        };
        return x88M;
    }(S9HM);
    var d36M = U9HM.util;
    var Q36M = U9HM.presets.numpad;
    var q16M = d36M.testTouch;
    var f36M = d36M.getCoord;
    var Y16M = d36M.isNumeric;
    var o76M = function q08M() {};
    var S66M = function o08M(P08M, U08M, G08M) {
        function V08M(M58M) {
            var S08M, d58M = n08M.validate.call(P08M, {
                    values: C08M.slice(0),
                    variables: m08M
                }, Y08M) || [],
                Z58M = d58M && d58M.disabled || [];
            Y08M._isValid = d58M.invalid ? false : true;
            Y08M._tempValue = n08M.formatValue.call(P08M, C08M.slice(0), m08M, Y08M);
            y08M = C08M.length;
            Q08M = d58M.length || a08M;
            if (Y08M._isVisible) {
                u9HM('.mbsc-np-ph', E08M).each(function(p58M) {
                    u9HM(this).html(n08M.fill == 'ltr' ? p58M >= y08M ? b08M : z08M || C08M[p58M] : p58M >= a08M - Q08M ? p58M + y08M < a08M ? b08M : z08M || C08M[p58M + y08M - a08M] : '');
                });
                u9HM('.mbsc-np-cph', E08M).each(function() {
                    u9HM(this).html(m08M[u9HM(this).attr('data-var')] || u9HM(this).attr('data-ph'));
                });
                if (y08M === a08M) {
                    for (S08M = 0; S08M <= 9; S08M++) {
                        Z58M.push(S08M);
                    }
                }
                u9HM('.mbsc-np-btn', E08M).removeClass(l08M);
                for (S08M = 0; S08M < Z58M.length; S08M++) {
                    u9HM('.mbsc-np-btn[data-val="' + Z58M[S08M] + '"]', E08M).addClass(l08M);
                }
                if (Y08M._isValid) {
                    u9HM('.mbsc-fr-btn-s .mbsc-fr-btn', E08M).removeClass(l08M);
                } else {
                    u9HM('.mbsc-fr-btn-s .mbsc-fr-btn', E08M).addClass(l08M);
                }
                if (Y08M.live) {
                    Y08M._hasValue = M58M || Y08M._hasValue;
                    A08M(M58M, false, M58M);
                    if (M58M) {
                        s08M('onSet', {
                            valueText: Y08M._value
                        });
                    }
                }
            }
        }

        function A08M(D58M, t58M, N58M, h58M) {
            if (t58M) {
                V08M();
            }
            if (!h58M) {
                c08M = C08M.slice(0);
                v08M = j9HM({}, m08M);
                H08M = W08M.slice(0);
                Y08M._value = Y08M._hasValue ? Y08M._tempValue : null;
            }
            if (D58M) {
                if (Y08M._isInput) {
                    K08M.val(Y08M._hasValue && Y08M._isValid ? Y08M._value : '');
                }
                s08M('onFill', {
                    valueText: Y08M._hasValue ? Y08M._tempValue : '',
                    change: N58M
                });
                if (N58M) {
                    Y08M._preventChange = true;
                    K08M.trigger('change');
                }
            }
        }

        function O08M(C58M) {
            var q58M, Y58M, o58M = C58M || [],
                n58M = [];
            W08M = [];
            m08M = {};
            for (q58M = 0; q58M < o58M.length; q58M++) {
                if (/:/.test(o58M[q58M])) {
                    Y58M = o58M[q58M].split(':');
                    m08M[Y58M[0]] = Y58M[1];
                    W08M.push(Y58M[0]);
                } else {
                    n58M.push(o58M[q58M]);
                    W08M.push('digit');
                }
            }
            return n58M;
        }

        function X08M(W58M, m58M) {
            if (!y08M && !m58M && !n08M.allowLeadingZero || W58M.hasClass('mbsc-fr-btn-d') || W58M.hasClass('mbsc-np-btn-empty')) {
                return;
            }
            if (y08M < a08M) {
                W08M.push('digit');
                C08M.push(m58M);
                V08M(true);
            }
        }

        function J08M(P58M) {
            var a58M, y58M, E58M = P58M.attr('data-val'),
                V58M = P58M.attr('data-track') !== 'false',
                K58M = P58M.attr('data-var');
            if (!P58M.hasClass('mbsc-fr-btn-d')) {
                if (K58M) {
                    y58M = K58M.split(':');
                    if (V58M) {
                        W08M.push(y58M[0]);
                    }
                    m08M[y58M[0]] = y58M[2] === undefined ? y58M[1] : m08M[y58M[0]] == y58M[1] ? y58M[2] : y58M[1];
                }
                if (E58M.length + y08M <= Q08M) {
                    for (a58M = 0; a58M < E58M.length; ++a58M) {
                        y58M = Y16M(E58M[a58M]) ? +E58M[a58M] : E58M[a58M];
                        if (n08M.allowLeadingZero || y08M || y58M) {
                            W08M.push('digit');
                            C08M.push(y58M);
                            y08M = C08M.length;
                        }
                    }
                }
                V08M(true);
            }
        }

        function i08M() {
            var l58M, A58M, z58M = W08M.pop();
            if (y08M || z58M !== 'digit') {
                if (z58M !== 'digit' && m08M[z58M]) {
                    delete m08M[z58M];
                    A58M = W08M.slice(0);
                    W08M = [];
                    for (l58M = 0; l58M < A58M.length; l58M++) {
                        if (A58M[l58M] !== z58M) {
                            W08M.push(A58M[l58M]);
                        }
                    }
                } else {
                    C08M.pop();
                }
                V08M(true);
            }
        }

        function x08M(r58M) {
            T08M = true;
            g08M = f36M(r58M, 'X');
            I08M = f36M(r58M, 'Y');
            clearInterval(f08M);
            clearTimeout(f08M);
            i08M();
            f08M = setInterval(function() {
                i08M();
            }, 150);
        }

        function j08M() {
            clearInterval(f08M);
            T08M = false;
        }

        function L08M(b58M) {
            if (q16M(b58M, this)) {
                if (b58M.type == 'keydown' && b58M.keyCode != 32) {
                    return;
                }
                x08M(b58M);
                if (b58M.type == 'mousedown') {
                    u9HM(document).on('mousemove', k08M).on('mouseup', R08M);
                }
            }
        }

        function k08M(c58M) {
            if (T08M) {
                F08M = f36M(c58M, 'X');
                B08M = f36M(c58M, 'Y');
                u08M = F08M - g08M;
                w08M = B08M - I08M;
                if (Math.abs(u08M) > 7 || Math.abs(w08M) > 7) {
                    j08M();
                }
            }
        }

        function R08M(T58M) {
            if (T08M) {
                T58M.preventDefault();
                j08M();
                if (T58M.type == 'mouseup') {
                    u9HM(document).off('mousemove', k08M).off('mouseup', R08M);
                }
            }
        }
        var E08M, l08M, b08M, y08M, n08M, z08M, g08M, I08M, F08M, B08M, u08M, w08M, T08M, f08M, C08M, Q08M, s08M, a08M, c08M, K08M = u9HM(P08M),
            Y08M = this,
            H08M = [],
            W08M = [],
            m08M = {},
            v08M = {},
            e08M = {
                107: '+',
                109: '-'
            },
            r08M = {
                48: 0,
                49: 1,
                50: 2,
                51: 3,
                52: 4,
                53: 5,
                54: 6,
                55: 7,
                56: 8,
                57: 9,
                96: 0,
                97: 1,
                98: 2,
                99: 3,
                100: 4,
                101: 5,
                102: 6,
                103: 7,
                104: 8,
                105: 9
            };
        V66M.call(this, P08M, U08M, true);
        Y08M.setVal = Y08M._setVal = function(f58M, Q58M, s58M, k58M) {
            Y08M._hasValue = f58M !== null && f58M !== undefined;
            C08M = O08M(u9HM.isArray(f58M) ? f58M.slice(0) : n08M.parseValue.call(P08M, f58M, Y08M));
            A08M(Q58M, true, s58M === undefined ? Q58M : s58M, k58M);
        };
        Y08M.getVal = Y08M._getVal = function(i58M) {
            return Y08M._hasValue || i58M ? Y08M[i58M ? '_tempValue' : '_value'] : null;
        };
        Y08M.setArrayVal = Y08M.setVal;
        Y08M.getArrayVal = function(v58M) {
            return v58M ? C08M.slice(0) : Y08M._hasValue ? c08M.slice(0) : null;
        };
        Y08M._readValue = function() {
            var R58M = K08M.val() || '';
            if (R58M !== '') {
                Y08M._hasValue = true;
            }
            if (z08M) {
                m08M = {};
                W08M = [];
                C08M = [];
            } else {
                m08M = Y08M._hasValue ? v08M : {};
                W08M = Y08M._hasValue ? H08M : [];
                C08M = Y08M._hasValue && c08M ? c08M.slice(0) : O08M(n08M.parseValue.call(P08M, R58M, Y08M));
                A08M(false, true);
            }
        };
        Y08M._fillValue = function() {
            Y08M._hasValue = true;
            A08M(true, false, true);
        };
        Y08M._generateContent = function() {
            var e58M, F58M, w58M, X58M = 1,
                B58M = '',
                H58M = '';
            H58M += '<div class="mbsc-np-hdr"><div role="button" tabindex="0" aria-label="' + n08M.deleteText + '" class="mbsc-np-del mbsc-fr-btn-e mbsc-ic mbsc-ic-' + n08M.deleteIcon + '"></div><div class="mbsc-np-dsp">';
            B58M = n08M.template.replace(/d/g, '<span class="mbsc-np-ph">' + b08M + '</span>').replace(/&#100;/g, 'd');
            B58M = B58M.replace(/{([a-zA-Z0-9]*)\:?([a-zA-Z0-9\-\_]*)}/g, '<span class="mbsc-np-cph" data-var="$1" data-ph="$2">$2</span>');
            H58M += B58M;
            H58M += '</div></div>';
            H58M += '<div class="mbsc-np-tbl-c mbsc-w-p"><div class="mbsc-np-tbl">';
            for (e58M = 0; e58M < 4; e58M++) {
                H58M += '<div class="mbsc-np-row">';
                for (F58M = 0; F58M < 3; F58M++) {
                    w58M = X58M;
                    if (X58M == 10 || X58M == 12) {
                        w58M = '';
                    } else if (X58M == 11) {
                        w58M = 0;
                    }
                    if (w58M === '') {
                        if (X58M == 10 && n08M.leftKey) {
                            H58M += '<div role="button" tabindex="0" class="mbsc-np-btn mbsc-np-btn-custom mbsc-fr-btn-e" ' + (n08M.leftKey.variable ? 'data-var="' + n08M.leftKey.variable + '"' : '') + ' data-val="' + (n08M.leftKey.value || '') + '" ' + (n08M.leftKey.track !== undefined ? ' data-track="' + n08M.leftKey.track + '"' : '') + '>' + n08M.leftKey.text + '</div>';
                        } else if (X58M == 12 && n08M.rightKey) {
                            H58M += '<div role="button" tabindex="0" class="mbsc-np-btn mbsc-np-btn-custom mbsc-fr-btn-e" ' + (n08M.rightKey.variable ? 'data-var="' + n08M.rightKey.variable + '"' : '') + ' data-val="' + (n08M.rightKey.value || '') + '" ' + (n08M.rightKey.track !== undefined ? ' data-track="' + n08M.rightKey.track + '"' : '') + ' >' + n08M.rightKey.text + '</div>';
                        } else {
                            H58M += '<div class="mbsc-np-btn mbsc-np-btn-empty"></div>';
                        }
                    } else {
                        H58M += '<div tabindex="0" role="button" class="mbsc-np-btn mbsc-fr-btn-e" data-val="' + w58M + '">' + w58M + '</div>';
                    }
                    X58M++;
                }
                H58M += '</div>';
            }
            H58M += '</div></div>';
            return H58M;
        };
        Y08M._markupReady = function() {
            E08M = Y08M._markup;
            V08M();
        };
        Y08M._attachEvents = function(I58M) {
            I58M.on('keydown', function(g58M) {
                var O58M;
                if (e08M[g58M.keyCode] !== undefined) {
                    O58M = u9HM('.mbsc-np-btn[data-var="sign:-:"]', I58M);
                    if (O58M.length) {
                        m08M.sign = g58M.keyCode == 107 ? '-' : '';
                        J08M(O58M);
                    }
                } else if (r08M[g58M.keyCode] !== undefined) {
                    X08M(u9HM('.mbsc-np-btn[data-val="' + r08M[g58M.keyCode] + '"]', I58M), r08M[g58M.keyCode]);
                } else if (g58M.keyCode == 8) {
                    g58M.preventDefault();
                    i08M();
                }
            });
            Y08M.tap(u9HM('.mbsc-np-btn', I58M), function() {
                var u58M = u9HM(this);
                if (u58M.hasClass('mbsc-np-btn-custom')) {
                    J08M(u58M);
                } else {
                    X08M(u58M, +u58M.attr('data-val'));
                }
            }, false, 30, true);
            u9HM('.mbsc-np-del', I58M).on('touchstart mousedown keydown', L08M).on('touchmove mousemove', k08M).on('touchend mouseup keyup', R08M);
        };
        Y08M.__init = function() {
            n08M = Y08M.settings;
            n08M.cssClass = (n08M.cssClass || '') + ' mbsc-np';
            n08M.template = n08M.template.replace(/\\d/, '&#100;');
            b08M = n08M.placeholder;
            a08M = (n08M.template.match(/d/g) || []).length;
            l08M = 'mbsc-fr-btn-d ' + (n08M.disabledClass || '');
            z08M = n08M.mask;
            s08M = Y08M.trigger;
            if (z08M && K08M.is('input')) {
                K08M.attr('type', 'password');
            }
        };
        Y08M._indexOf = function(U58M, j58M) {
            var J58M;
            for (J58M = 0; J58M < U58M.length; ++J58M) {
                if (U58M[J58M].toString() === j58M.toString()) {
                    return J58M;
                }
            }
            return -1;
        };
        if (!G08M) {
            Y08M.init(U08M);
        }
    };
    S66M.prototype = {
        _hasDef: true,
        _hasTheme: true,
        _hasLang: true,
        _hasPreset: true,
        _class: 'numpad',
        _defaults: j9HM({}, V66M.prototype._defaults, {
            template: 'dd.dd',
            placeholder: '0',
            deleteIcon: 'backspace',
            allowLeadingZero: false,
            headerText: false,
            fill: 'rtl',
            deleteText: 'Delete',
            decimalSeparator: '.',
            thousandsSeparator: ',',
            validate: o76M,
            parseValue: o76M,
            formatValue: function x58M(D98M, h98M, t98M) {
                var G58M, d98M = 1,
                    p98M = t98M.settings,
                    N98M = p98M.placeholder,
                    M98M = p98M.template,
                    Z98M = D98M.length,
                    S58M = M98M.length,
                    L58M = '';
                for (G58M = 0; G58M < S58M; G58M++) {
                    if (M98M[S58M - G58M - 1] == 'd') {
                        if (d98M <= Z98M) {
                            L58M = D98M[Z98M - d98M] + L58M;
                        } else {
                            L58M = N98M + L58M;
                        }
                        d98M++;
                    } else {
                        L58M = M98M[S58M - G58M - 1] + L58M;
                    }
                }
                u9HM.each(h98M, function(q98M, o98M) {
                    L58M = L58M.replace('{' + q98M + '}', o98M);
                });
                return u9HM('<div>' + L58M + '</div>').text();
            }
        })
    };
    U9HM.classes.Numpad = S66M;
    U9HM.themes.numpad = U9HM.themes.frame;
    U9HM.presetShort('numpad', 'Numpad', false);
    var W16M = {
        min: 0,
        max: 99.99,
        scale: 2,
        prefix: '',
        suffix: '',
        returnAffix: false
    };
    Q36M.decimal = function(n98M) {
        function C98M(K98M, V98M) {
            var E98M, P98M = K98M.slice(0),
                a98M = 0;
            while (P98M.length) {
                a98M = a98M * 10 + P98M.shift();
            }
            for (E98M = 0; E98M < Y98M.scale; E98M++) {
                a98M /= 10;
            }
            return V98M ? a98M * -1 : a98M;
        }

        function m98M(l98M) {
            var z98M = C98M(l98M).toFixed(Y98M.scale).replace('.', Y98M.decimalSeparator).replace(/\B(?=(\d{3})+(?!\d))/g, Y98M.thousandsSeparator);
            return z98M;
        }
        var y98M = j9HM({}, n98M.settings),
            Y98M = j9HM(n98M.settings, W16M, y98M),
            W98M = Y98M.min < 0;
        n98M.getVal = function(b98M) {
            var A98M = n98M._getVal(b98M),
                r98M = (A98M + '').replace(Y98M.decimalSeparator, '.').replace(Y98M.thousandsSeparator, '');
            return d36M.isNumeric(r98M) ? +r98M : A98M;
        };
        return {
            template: (W98M ? '{sign}' : '') + Y98M.prefix.replace(/d/g, '\\d') + Array((Math.floor(Math.max(Y98M.max, Math.abs(Y98M.min))) + '').length + 1).join('d') + (Y98M.scale ? '.' + Array(Y98M.scale + 1).join('d') : '') + Y98M.suffix.replace(/d/g, '\\d'),
            leftKey: W98M ? {
                text: '-/+',
                variable: 'sign:-:',
                track: false
            } : undefined,
            parseValue: function c98M(k98M) {
                var f98M, T98M, s98M = k98M || Y98M.defaultValue,
                    Q98M = [];
                if (s98M) {
                    s98M = (s98M + '').replace(Y98M.decimalSeparator, '.').replace(Y98M.thousandsSeparator, '');
                    T98M = s98M.match(/\d+\.?\d*/g);
                    if (T98M) {
                        T98M = (+T98M[0]).toFixed(Y98M.scale);
                        for (f98M = 0; f98M < T98M.length; f98M++) {
                            if (T98M[f98M] != '.') {
                                if (+T98M[f98M]) {
                                    Q98M.push(+T98M[f98M]);
                                } else if (Q98M.length) {
                                    Q98M.push(0);
                                }
                            }
                        }
                    }
                }
                if (k98M < 0) {
                    Q98M.push('sign:' + '-');
                }
                return Q98M;
            },
            formatValue: function i98M(R98M, H98M) {
                var v98M = m98M(R98M),
                    X98M = C98M(R98M, H98M && H98M.sign == '-');
                return (X98M < 0 ? '-' : '') + (Y98M.returnAffix ? Y98M.prefix + v98M + Y98M.suffix : v98M);
            },
            validate: function w98M(B98M) {
                var e98M = B98M.values,
                    g98M = m98M(e98M),
                    F98M = C98M(e98M, B98M.variables && B98M.variables.sign == '-'),
                    I98M = [];
                if (!e98M.length && !Y98M.allowLeadingZero) {
                    I98M.push(0);
                }
                if (n98M.isVisible()) {
                    u9HM('.mbsc-np-dsp', n98M._markup).html((B98M.variables.sign || '') + Y98M.prefix + g98M + Y98M.suffix);
                }
                return {
                    disabled: I98M,
                    invalid: F98M > Y98M.max || F98M < Y98M.min || (Y98M.invalid ? n98M._indexOf(Y98M.invalid, F98M) != -1 : false)
                };
            }
        };
    };
    var k26M = ['h', 'm', 's'];
    var a16M = {
        min: 0,
        max: 362439,
        defaultValue: 0,
        hourTextShort: 'h',
        minuteTextShort: 'm',
        secTextShort: 's'
    };
    Q36M.timespan = function(x98M) {
        function S98M(N6PM) {
            var Z6PM, M6PM = '',
                p6PM = 60 * 60;
            u9HM(k26M).each(function(t6PM, D6PM) {
                Z6PM = Math.floor(N6PM / p6PM);
                N6PM -= Z6PM * p6PM;
                p6PM /= 60;
                if (Z6PM > 0 || D6PM == 's' && !M6PM) {
                    M6PM = M6PM + (M6PM ? ' ' : '') + Z6PM + G98M[D6PM];
                }
            });
            return M6PM;
        }
        var d6PM = j9HM({}, x98M.settings),
            j98M = j9HM(x98M.settings, a16M, d6PM),
            G98M = {
                h: j98M.hourTextShort.replace(/d/g, '\\d'),
                m: j98M.minuteTextShort.replace(/d/g, '\\d'),
                s: j98M.secTextShort.replace(/d/g, '\\d')
            },
            L98M = 'd<span class="mbsc-np-sup mbsc-np-time">' + G98M.s + '</span>';
        if (j98M.max > 9) {
            L98M = 'd' + L98M;
        }
        if (j98M.max > 99) {
            L98M = '<span class="mbsc-np-ts-m">' + (j98M.max > 639 ? 'd' : '') + 'd</span><span class="mbsc-np-sup mbsc-np-time">' + G98M.m + '</span>' + L98M;
        }
        if (j98M.max > 6039) {
            L98M = '<span class="mbsc-np-ts-h">' + (j98M.max > 38439 ? 'd' : '') + 'd</span><span class="mbsc-np-sup mbsc-np-time">' + G98M.h + '</span>' + L98M;
        }
        x98M.setVal = function(h6PM, q6PM, o6PM, Y6PM) {
            if (d36M.isNumeric(h6PM)) {
                h6PM = S98M(h6PM);
            }
            return x98M._setVal(h6PM, q6PM, o6PM, Y6PM);
        };
        x98M.getVal = function(n6PM) {
            return x98M._hasValue || n6PM ? i26M(x98M.getArrayVal(n6PM)) : null;
        };
        return {
            template: L98M,
            parseValue: function C6PM(a6PM) {
                var m6PM, y6PM = a6PM || S98M(j98M.defaultValue),
                    W6PM = [];
                if (y6PM) {
                    u9HM(k26M).each(function(P6PM, E6PM) {
                        m6PM = new RegExp('(\\d+)' + G98M[E6PM], 'gi').exec(y6PM);
                        if (m6PM) {
                            m6PM = +m6PM[1];
                            if (m6PM > 9) {
                                W6PM.push(Math.floor(m6PM / 10));
                                W6PM.push(m6PM % 10);
                            } else {
                                if (W6PM.length) {
                                    W6PM.push(0);
                                }
                                if (m6PM || W6PM.length) {
                                    W6PM.push(m6PM);
                                }
                            }
                        } else if (W6PM.length) {
                            W6PM.push(0);
                            W6PM.push(0);
                        }
                    });
                }
                return W6PM;
            },
            formatValue: function K6PM(V6PM) {
                return S98M(i26M(V6PM));
            },
            validate: function z6PM(b6PM) {
                var A6PM = b6PM.values,
                    l6PM = i26M(A6PM.slice(0)),
                    r6PM = [];
                if (!A6PM.length) {
                    r6PM.push(0);
                }
                return {
                    disabled: r6PM,
                    invalid: l6PM > j98M.max || l6PM < j98M.min || (j98M.invalid ? x98M._indexOf(j98M.invalid, +l6PM) != -1 : false)
                };
            }
        };
    };
    var E16M = {
        timeFormat: 'hh:ii A',
        amText: 'am',
        pmText: 'pm'
    };
    Q36M.time = function(B6PM) {
        function F6PM(O6PM, J6PM) {
            var g6PM, u6PM = '';
            for (g6PM = 0; g6PM < O6PM.length; ++g6PM) {
                u6PM += O6PM[g6PM] + (g6PM % 2 == (O6PM.length % 2 == 1 ? 0 : 1) && g6PM != O6PM.length - 1 ? ':' : '');
            }
            u9HM.each(J6PM, function(j6PM, U6PM) {
                u6PM += ' ' + U6PM;
            });
            return u6PM;
        }

        function I6PM(L6PM) {
            var x6PM, d3PM, S6PM, N3PM, D3PM, q3PM, M3PM, Z3PM, t3PM, h3PM, G6PM = [],
                p3PM = 2 * v6PM.length;
            w6PM = p3PM;
            if (!L6PM.length) {
                if (T6PM) {
                    G6PM.push(0);
                    G6PM.push(c6PM.leftKey.value);
                }
                G6PM.push(c6PM.rightKey.value);
            }
            if (!T6PM && (p3PM - L6PM.length < 2 || L6PM[0] != 1 && (L6PM[0] > 2 || L6PM[1] > 3) && p3PM - L6PM.length <= 2)) {
                G6PM.push('30');
                G6PM.push('00');
            }
            if ((T6PM ? L6PM[0] > 1 || L6PM[1] > 2 : L6PM[0] != 1 && (L6PM[0] > 2 || L6PM[1] > 3)) && L6PM[0]) {
                L6PM.unshift(0);
                w6PM = p3PM - 1;
            }
            if (L6PM.length == p3PM) {
                for (x6PM = 0; x6PM <= 9; ++x6PM) {
                    G6PM.push(x6PM);
                }
            } else if (L6PM.length == 1 && T6PM && L6PM[0] == 1 || L6PM.length && L6PM.length % 2 === 0 || !T6PM && L6PM[0] == 2 && L6PM[1] > 3 && L6PM.length % 2 == 1) {
                for (x6PM = 6; x6PM <= 9; ++x6PM) {
                    G6PM.push(x6PM);
                }
            }
            t3PM = L6PM[1] !== undefined ? '' + L6PM[0] + L6PM[1] : '';
            h3PM = +s6PM == +(L6PM[3] !== undefined ? '' + L6PM[2] + L6PM[3] : '');
            if (c6PM.invalid) {
                for (x6PM = 0; x6PM < c6PM.invalid.length; ++x6PM) {
                    q3PM = c6PM.invalid[x6PM].getHours();
                    M3PM = c6PM.invalid[x6PM].getMinutes();
                    Z3PM = c6PM.invalid[x6PM].getSeconds();
                    if (q3PM == +t3PM) {
                        if (v6PM.length == 2 && (M3PM < 10 ? 0 : +('' + M3PM)[0]) == +L6PM[2]) {
                            G6PM.push(M3PM < 10 ? M3PM : +('' + M3PM)[1]);
                            break;
                        } else if ((Z3PM < 10 ? 0 : +('' + Z3PM)[0]) == +L6PM[4]) {
                            G6PM.push(Z3PM < 10 ? Z3PM : +('' + Z3PM)[1]);
                            break;
                        }
                    }
                }
            }
            if (c6PM.min || c6PM.max) {
                d3PM = +f6PM == +t3PM;
                S6PM = +Q6PM == +t3PM;
                D3PM = S6PM && h3PM;
                N3PM = d3PM && h3PM;
                if (L6PM.length === 0) {
                    for (x6PM = T6PM ? 2 : f6PM > 19 ? f6PM[0] : 3; x6PM <= (f6PM[0] == 1 ? 9 : f6PM[0] - 1); ++x6PM) {
                        G6PM.push(x6PM);
                    }
                    if (f6PM >= 10) {
                        G6PM.push(0);
                        if (f6PM[0] == 2) {
                            for (x6PM = 3; x6PM <= 9; ++x6PM) {
                                G6PM.push(x6PM);
                            }
                        }
                    }
                    if (Q6PM && Q6PM < 10 || f6PM && f6PM >= 10) {
                        for (x6PM = Q6PM && Q6PM < 10 ? +Q6PM[0] + 1 : 0; x6PM < (f6PM && f6PM >= 10 ? f6PM[0] : 10); ++x6PM) {
                            G6PM.push(x6PM);
                        }
                    }
                }
                if (L6PM.length == 1) {
                    if (L6PM[0] === 0) {
                        for (x6PM = 0; x6PM < f6PM[0]; ++x6PM) {
                            G6PM.push(x6PM);
                        }
                    }
                    if (f6PM && L6PM[0] !== 0 && (T6PM ? L6PM[0] == 1 : L6PM[0] == 2)) {
                        for (x6PM = T6PM ? 3 : 4; x6PM <= 9; ++x6PM) {
                            G6PM.push(x6PM);
                        }
                    }
                    if (L6PM[0] == f6PM[0]) {
                        for (x6PM = 0; x6PM < f6PM[1]; ++x6PM) {
                            G6PM.push(x6PM);
                        }
                    }
                    if (L6PM[0] == Q6PM[0] && !T6PM) {
                        for (x6PM = +Q6PM[1] + 1; x6PM <= 9; ++x6PM) {
                            G6PM.push(x6PM);
                        }
                    }
                }
                if (L6PM.length == 2 && (d3PM || S6PM)) {
                    for (x6PM = S6PM ? +s6PM[0] + 1 : 0; x6PM < (d3PM ? +R6PM[0] : 10); ++x6PM) {
                        G6PM.push(x6PM);
                    }
                }
                if (L6PM.length == 3 && (S6PM && L6PM[2] == s6PM[0] || d3PM && L6PM[2] == R6PM[0])) {
                    for (x6PM = S6PM && L6PM[2] == s6PM[0] ? +s6PM[1] + 1 : 0; x6PM < (d3PM && L6PM[2] == R6PM[0] ? +R6PM[1] : 10); ++x6PM) {
                        G6PM.push(x6PM);
                    }
                }
                if (L6PM.length == 4 && (N3PM || D3PM)) {
                    for (x6PM = D3PM ? +k6PM[0] + 1 : 0; x6PM < (N3PM ? +i6PM[0] : 10); ++x6PM) {
                        G6PM.push(x6PM);
                    }
                }
                if (L6PM.length == 5 && (N3PM && L6PM[4] == i6PM[0] || D3PM && L6PM[4] == k6PM[0])) {
                    for (x6PM = D3PM && L6PM[4] == k6PM[0] ? +k6PM[1] + 1 : 0; x6PM < (N3PM && L6PM[4] == i6PM[0] ? +i6PM[1] : 10); ++x6PM) {
                        G6PM.push(x6PM);
                    }
                }
            }
            return G6PM;
        }
        var e6PM = j9HM({}, B6PM.settings),
            c6PM = j9HM(B6PM.settings, E16M, e6PM),
            v6PM = c6PM.timeFormat.split(':'),
            T6PM = c6PM.timeFormat.match(/a/i),
            X6PM = T6PM ? T6PM[0] == 'a' ? c6PM.amText : c6PM.amText.toUpperCase() : '',
            H6PM = T6PM ? T6PM[0] == 'a' ? c6PM.pmText : c6PM.pmText.toUpperCase() : '',
            w6PM = 0,
            f6PM = c6PM.min ? '' + c6PM.min.getHours() : '',
            Q6PM = c6PM.max ? '' + c6PM.max.getHours() : '',
            R6PM = c6PM.min ? '' + (c6PM.min.getMinutes() < 10 ? '0' + c6PM.min.getMinutes() : c6PM.min.getMinutes()) : '',
            s6PM = c6PM.max ? '' + (c6PM.max.getMinutes() < 10 ? '0' + c6PM.max.getMinutes() : c6PM.max.getMinutes()) : '',
            i6PM = c6PM.min ? '' + (c6PM.min.getSeconds() < 10 ? '0' + c6PM.min.getSeconds() : c6PM.min.getSeconds()) : '',
            k6PM = c6PM.max ? '' + (c6PM.max.getSeconds() < 10 ? '0' + c6PM.max.getSeconds() : c6PM.max.getSeconds()) : '';
        c6PM.min ? c6PM.min.setFullYear(2014, 7, 20) : '';
        c6PM.max ? c6PM.max.setFullYear(2014, 7, 20) : '';
        return {
            placeholder: '-',
            allowLeadingZero: true,
            template: (v6PM.length == 3 ? 'dd:dd:dd' : v6PM.length == 2 ? 'dd:dd' : 'dd') + (T6PM ? '<span class="mbsc-np-sup">{ampm:--}</span>' : ''),
            leftKey: T6PM ? {
                text: X6PM,
                variable: 'ampm:' + X6PM,
                value: '00'
            } : {
                text: ':00',
                value: '00'
            },
            rightKey: T6PM ? {
                text: H6PM,
                variable: 'ampm:' + H6PM,
                value: '00'
            } : {
                text: ':30',
                value: '30'
            },
            parseValue: function o3PM(m3PM) {
                var n3PM, C3PM, Y3PM = m3PM || c6PM.defaultValue,
                    W3PM = [];
                if (Y3PM) {
                    Y3PM = Y3PM + '';
                    C3PM = Y3PM.match(/\d/g);
                    if (C3PM) {
                        for (n3PM = 0; n3PM < C3PM.length; n3PM++) {
                            W3PM.push(+C3PM[n3PM]);
                        }
                    }
                    if (T6PM) {
                        W3PM.push('ampm:' + (Y3PM.match(new RegExp(c6PM.pmText, 'gi')) ? H6PM : X6PM));
                    }
                }
                return W3PM;
            },
            formatValue: function y3PM(a3PM, E3PM) {
                return F6PM(a3PM, E3PM);
            },
            validate: function P3PM(l3PM) {
                var K3PM = l3PM.values,
                    A3PM = l3PM.variables,
                    z3PM = F6PM(K3PM, A3PM),
                    V3PM = K3PM.length >= 3 ? new Date(2014, 7, 20, '' + K3PM[0] + (K3PM.length % 2 === 0 ? K3PM[1] : ''), '' + K3PM[K3PM.length % 2 === 0 ? 2 : 1] + K3PM[K3PM.length % 2 === 0 ? 3 : 2]) : '';
                return {
                    disabled: I6PM(K3PM),
                    length: w6PM,
                    invalid: (T6PM ? !new RegExp('^(0?[1-9]|1[012])(:[0-5]\\d)?(:[0-5][0-9])' + ' (?:' + c6PM.amText + '|' + c6PM.pmText + ')$', 'i').test(z3PM) : !/^([0-1]?[0-9]|2[0-4]):([0-5][0-9])(:[0-5][0-9])?$/.test(z3PM)) || (c6PM.invalid ? B6PM._indexOf(c6PM.invalid, V3PM) != -1 : false) || !((c6PM.min ? c6PM.min <= V3PM : true) && (c6PM.max ? V3PM <= c6PM.max : true))
                };
            }
        };
    };
    var P16M = {
        dateOrder: 'mdy',
        dateFormat: 'mm/dd/yy',
        delimiter: '/'
    };
    Q36M.date = function(w3PM) {
        function F3PM(U3PM) {
            return U3PM % 4 === 0 && U3PM % 100 !== 0 || U3PM % 400 === 0;
        }

        function I3PM(x3PM) {
            var j3PM, G3PM, D4PM, M4PM, Z4PM, L3PM = [],
                S3PM = x3PM[b3PM + 3] !== undefined ? '' + x3PM[b3PM] + x3PM[b3PM + 1] + x3PM[b3PM + 2] + x3PM[b3PM + 3] : '',
                d4PM = x3PM[c3PM + 1] !== undefined ? '' + x3PM[c3PM] + x3PM[c3PM + 1] : '',
                p4PM = x3PM[f3PM + 1] !== undefined ? '' + x3PM[f3PM] + x3PM[f3PM + 1] : '',
                h4PM = '' + r3PM.getMaxDayOfMonth(S3PM || 2012, d4PM - 1 || 0),
                t4PM = s3PM === S3PM && +i3PM === +d4PM,
                N4PM = Q3PM === S3PM && +v3PM === +d4PM;
            if (r3PM.invalid) {
                for (j3PM = 0; j3PM < r3PM.invalid.length; ++j3PM) {
                    D4PM = r3PM.getYear(r3PM.invalid[j3PM]);
                    M4PM = r3PM.getMonth(r3PM.invalid[j3PM]);
                    Z4PM = r3PM.getDay(r3PM.invalid[j3PM]);
                    if (D4PM == +S3PM && M4PM + 1 == +d4PM) {
                        if ((Z4PM < 10 ? 0 : +('' + Z4PM)[0]) == +x3PM[f3PM]) {
                            L3PM.push(Z4PM < 10 ? Z4PM : +('' + Z4PM)[1]);
                            break;
                        }
                    }
                    if (M4PM + 1 == +d4PM && Z4PM == +p4PM) {
                        if (('' + D4PM).substring(0, 3) == '' + x3PM[b3PM] + x3PM[b3PM + 1] + x3PM[b3PM + 2]) {
                            L3PM.push(('' + D4PM)[3]);
                            break;
                        }
                    }
                    if (D4PM == +S3PM && Z4PM == +p4PM) {
                        if ((M4PM < 10 ? 0 : +('' + (M4PM + 1))[0]) == +x3PM[c3PM]) {
                            L3PM.push(M4PM < 10 ? M4PM : +('' + (M4PM + 1))[1]);
                            break;
                        }
                    }
                }
            }
            if (p4PM == '31' && (x3PM.length == c3PM || x3PM.length == c3PM + 1)) {
                if (x3PM[c3PM] != 1) {
                    L3PM.push(2, 4, 6, 9, 11);
                } else {
                    L3PM.push(1);
                }
            }
            if (p4PM == '30' && x3PM[c3PM] === 0 && x3PM.length <= c3PM + 1) {
                L3PM.push(2);
            }
            if (x3PM.length == c3PM) {
                for (j3PM = Q3PM === S3PM && +v3PM < 10 ? 1 : 2; j3PM <= 9; ++j3PM) {
                    L3PM.push(j3PM);
                }
                if (s3PM === S3PM && +i3PM >= 10) {
                    L3PM.push(0);
                }
            }
            if (x3PM.length == c3PM + 1) {
                if (x3PM[c3PM] == 1) {
                    for (j3PM = Q3PM === S3PM ? +v3PM[1] + 1 : 3; j3PM <= 9; ++j3PM) {
                        L3PM.push(j3PM);
                    }
                    if (s3PM == S3PM) {
                        for (j3PM = 0; j3PM < +i3PM[1]; ++j3PM) {
                            L3PM.push(j3PM);
                        }
                    }
                }
                if (x3PM[c3PM] === 0) {
                    L3PM.push(0);
                    if (Q3PM === S3PM || s3PM === S3PM) {
                        for (j3PM = Q3PM === S3PM ? +p4PM > +H3PM ? +v3PM : +v3PM + 1 : 0; j3PM <= (s3PM === S3PM ? +p4PM < +R3PM ? +i3PM - 1 : +i3PM - 1 : 9); ++j3PM) {
                            L3PM.push(j3PM);
                        }
                    }
                }
            }
            if (x3PM.length == f3PM) {
                for (j3PM = N4PM ? (+H3PM > 10 ? +H3PM[0] : 0) + 1 : +h4PM[0] + 1; j3PM <= 9; ++j3PM) {
                    L3PM.push(j3PM);
                }
                if (t4PM) {
                    for (j3PM = 0; j3PM < (+R3PM < 10 ? 0 : R3PM[0]); ++j3PM) {
                        L3PM.push(j3PM);
                    }
                }
            }
            if (x3PM.length == f3PM + 1) {
                if (x3PM[f3PM] >= 3 || d4PM == '02') {
                    for (j3PM = +h4PM[1] + 1; j3PM <= 9; ++j3PM) {
                        L3PM.push(j3PM);
                    }
                }
                if (N4PM && +H3PM[0] == x3PM[f3PM]) {
                    for (j3PM = +H3PM[1] + 1; j3PM <= 9; ++j3PM) {
                        L3PM.push(j3PM);
                    }
                }
                if (t4PM && R3PM[0] == x3PM[f3PM]) {
                    for (j3PM = 0; j3PM < +R3PM[1]; ++j3PM) {
                        L3PM.push(j3PM);
                    }
                }
                if (x3PM[f3PM] === 0) {
                    L3PM.push(0);
                    if (N4PM || t4PM) {
                        for (j3PM = N4PM ? +H3PM + 1 : 1; j3PM <= (t4PM ? +R3PM - 1 : 9); ++j3PM) {
                            L3PM.push(j3PM);
                        }
                    }
                }
            }
            if (x3PM[b3PM + 2] !== undefined && d4PM == '02' && p4PM == '29') {
                for (G3PM = +('' + x3PM[b3PM] + x3PM[b3PM + 1] + x3PM[b3PM + 2] + 0); G3PM <= +('' + x3PM[b3PM] + x3PM[b3PM + 1] + x3PM[b3PM + 2] + 9); ++G3PM) {
                    L3PM.push(!F3PM(G3PM) ? G3PM % 10 : '');
                }
            }
            if (x3PM.length == b3PM) {
                if (r3PM.min) {
                    for (j3PM = 0; j3PM < +s3PM[0]; ++j3PM) {
                        L3PM.push(j3PM);
                    }
                }
                if (r3PM.max) {
                    for (j3PM = +Q3PM[0] + 1; j3PM <= 9; ++j3PM) {
                        L3PM.push(j3PM);
                    }
                }
                L3PM.push(0);
            }
            if (r3PM.min || r3PM.max) {
                for (G3PM = 1; G3PM < 4; ++G3PM) {
                    if (x3PM.length == b3PM + G3PM) {
                        if (x3PM[b3PM + G3PM - 1] == +s3PM[G3PM - 1] && (G3PM == 3 ? x3PM[b3PM + G3PM - 2] == +s3PM[G3PM - 2] : true)) {
                            for (j3PM = 0; j3PM < +s3PM[G3PM] + (G3PM == 3 && x3PM[c3PM + 1] && +i3PM > +d4PM ? 1 : 0); ++j3PM) {
                                L3PM.push(j3PM);
                            }
                        }
                        if (x3PM[b3PM + G3PM - 1] == +Q3PM[G3PM - 1] && (G3PM == 3 ? x3PM[b3PM + G3PM - 2] == +Q3PM[G3PM - 2] : true)) {
                            for (j3PM = +Q3PM[G3PM] + (G3PM == 3 && +v3PM < +d4PM ? 0 : 1); j3PM <= 9; ++j3PM) {
                                L3PM.push(j3PM);
                            }
                        }
                    }
                }
            }
            return L3PM;
        }

        function B3PM(q4PM) {
            return new Date(+('' + q4PM[b3PM] + q4PM[b3PM + 1] + q4PM[b3PM + 2] + q4PM[b3PM + 3]), +('' + q4PM[c3PM] + q4PM[c3PM + 1]) - 1, +('' + q4PM[f3PM] + q4PM[f3PM + 1]));
        }
        var b3PM, c3PM, f3PM, X3PM, k3PM = [],
            e3PM = j9HM({}, w3PM.settings),
            r3PM = j9HM(w3PM.settings, h66M.defaults, P16M, e3PM),
            T3PM = r3PM.dateOrder,
            i3PM = r3PM.min ? '' + (r3PM.getMonth(r3PM.min) + 1) : 0,
            v3PM = r3PM.max ? '' + (r3PM.getMonth(r3PM.max) + 1) : 0,
            R3PM = r3PM.min ? '' + r3PM.getDay(r3PM.min) : 0,
            H3PM = r3PM.max ? '' + r3PM.getDay(r3PM.max) : 0,
            s3PM = r3PM.min ? '' + r3PM.getYear(r3PM.min) : 0,
            Q3PM = r3PM.max ? '' + r3PM.getYear(r3PM.max) : 0;
        T3PM = T3PM.replace(/y+/gi, 'yyyy');
        T3PM = T3PM.replace(/m+/gi, 'mm');
        T3PM = T3PM.replace(/d+/gi, 'dd');
        b3PM = T3PM.toUpperCase().indexOf('Y');
        c3PM = T3PM.toUpperCase().indexOf('M');
        f3PM = T3PM.toUpperCase().indexOf('D');
        T3PM = '';
        k3PM.push({
            val: b3PM,
            n: 'yyyy'
        }, {
            val: c3PM,
            n: 'mm'
        }, {
            val: f3PM,
            n: 'dd'
        });
        k3PM.sort(function(g3PM, O3PM) {
            return g3PM.val - O3PM.val;
        });
        u9HM.each(k3PM, function(J3PM, u3PM) {
            T3PM += u3PM.n;
        });
        b3PM = T3PM.indexOf('y');
        c3PM = T3PM.indexOf('m');
        f3PM = T3PM.indexOf('d');
        T3PM = '';
        for (X3PM = 0; X3PM < 8; ++X3PM) {
            T3PM += 'd';
            if (X3PM + 1 == b3PM || X3PM + 1 == c3PM || X3PM + 1 == f3PM) {
                T3PM += r3PM.delimiter;
            }
        }
        w3PM.getVal = function(o4PM) {
            return w3PM._hasValue || o4PM ? B3PM(w3PM.getArrayVal(o4PM)) : null;
        };
        return {
            placeholder: '-',
            fill: 'ltr',
            allowLeadingZero: true,
            template: T3PM,
            parseValue: function Y4PM(y4PM) {
                var W4PM, n4PM = [],
                    m4PM = y4PM || r3PM.defaultValue,
                    C4PM = h66M.parseDate(r3PM.dateFormat, m4PM, r3PM);
                if (m4PM) {
                    for (W4PM = 0; W4PM < k3PM.length; ++W4PM) {
                        if (/m/i.test(k3PM[W4PM].n)) {
                            n4PM = n4PM.concat(((r3PM.getMonth(C4PM) < 9 ? '0' : '') + (r3PM.getMonth(C4PM) + 1)).split(''));
                        } else if (/d/i.test(k3PM[W4PM].n)) {
                            n4PM = n4PM.concat(((r3PM.getDay(C4PM) < 10 ? '0' : '') + r3PM.getDay(C4PM)).split(''));
                        } else {
                            n4PM = n4PM.concat((r3PM.getYear(C4PM) + '').split(''));
                        }
                    }
                }
                return n4PM;
            },
            formatValue: function a4PM(E4PM) {
                return h66M.formatDate(r3PM.dateFormat, B3PM(E4PM), r3PM);
            },
            validate: function P4PM(z4PM) {
                var V4PM = z4PM.values,
                    K4PM = B3PM(V4PM);
                return {
                    disabled: I3PM(V4PM),
                    invalid: !(K4PM != 'Invalid Date' && (r3PM.min ? r3PM.min <= K4PM : true) && (r3PM.max ? K4PM <= r3PM.max : true)) || (r3PM.invalid ? w3PM._indexOf(r3PM.invalid, K4PM) != -1 : false)
                };
            }
        };
    };
    var G66M = this && this.__extends || function() {
        var l4PM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(A4PM, r4PM) {
            A4PM.__proto__ = r4PM;
        } || function(T4PM, c4PM) {
            for (var b4PM in c4PM) {
                if (c4PM.hasOwnProperty(b4PM)) T4PM[b4PM] = c4PM[b4PM];
            }
        };
        return function(Q4PM, f4PM) {
            function s4PM() {
                this.constructor = Q4PM;
            }
            l4PM(Q4PM, f4PM);
            Q4PM.prototype = f4PM === null ? Object.create(f4PM) : (s4PM.prototype = f4PM.prototype, new s4PM());
        };
    }();
    var z36M = function(i4PM) {
        function k4PM(R4PM, H4PM, X4PM, w4PM) {
            var v4PM = i4PM.call(this, R4PM, H4PM, X4PM, w4PM) || this;
            v4PM.preset = undefined;
            v4PM.onChangeEmitter = new J9HM.EventEmitter();
            return v4PM;
        }
        G66M(k4PM, i4PM);
        Object.defineProperty(k4PM.prototype, "value", {
            set: function B4PM(e4PM) {
                this.setNewValueProxy(e4PM);
            },
            enumerable: true,
            configurable: true
        });
        k4PM.prototype.setNewValue = function(F4PM) {
            if (this._instance) {
                var I4PM = this._instance.getVal();
                if (I4PM !== F4PM) {
                    this._instance.setVal(F4PM, true, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        k4PM.prototype.ngAfterViewInit = function() {
            i4PM.prototype.ngAfterViewInit.call(this);
            var g4PM = j9HM({
                preset: this.preset
            }, this.options, this.optionExtensions);
            this._instance = new S66M(this.element, g4PM);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        k4PM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-numpad]',
                exportAs: 'mobiscroll'
            }]
        }];
        k4PM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        k4PM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-numpad']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-numpadChange']
            }]
        };
        return k4PM;
    }(S9HM);
    var c26M = function(u4PM) {
        function O4PM(U4PM, j4PM, x4PM, L4PM) {
            var J4PM = u4PM.call(this, U4PM, j4PM, x4PM, L4PM) || this;
            J4PM.onChangeEmitter = new J9HM.EventEmitter();
            J4PM.preset = 'decimal';
            return J4PM;
        }
        G66M(O4PM, u4PM);
        Object.defineProperty(O4PM.prototype, "value", {
            set: function G4PM(S4PM) {
                this.setNewValueProxy(S4PM);
            },
            enumerable: true,
            configurable: true
        });
        O4PM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-numpad-decimal]',
                exportAs: 'mobiscroll'
            }]
        }];
        O4PM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        O4PM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-numpad-decimal']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-numpad-decimalChange']
            }]
        };
        return O4PM;
    }(z36M);
    var b26M = function(M2PM) {
        function d2PM(p2PM, N2PM, D2PM, t2PM) {
            var Z2PM = M2PM.call(this, p2PM, N2PM, D2PM, t2PM) || this;
            Z2PM.onChangeEmitter = new J9HM.EventEmitter();
            return Z2PM;
        }
        G66M(d2PM, M2PM);
        Object.defineProperty(d2PM.prototype, "value", {
            set: function h2PM(q2PM) {
                this.setNewValueProxy(q2PM);
            },
            enumerable: true,
            configurable: true
        });
        d2PM.prototype.setNewValue = function(o2PM) {
            if (this._instance) {
                var Y2PM = this._instance.getVal();
                if (Y2PM && !o2PM || !Y2PM && o2PM || Y2PM && o2PM && Y2PM.getTime() !== o2PM.getTime()) {
                    this._instance.setVal(o2PM, true, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        d2PM.prototype.ngAfterViewInit = function() {
            M2PM.prototype.ngAfterViewInit.call(this);
            var n2PM = j9HM({
                preset: 'date'
            }, this.options, this.optionExtensions);
            this._instance = new S66M(this.element, n2PM);
            if (this.initialValue !== undefined && this.initialValue !== "") {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        d2PM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-numpad-date]',
                exportAs: 'mobiscroll'
            }]
        }];
        d2PM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        d2PM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-numpad-date']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-numpad-dateChange']
            }]
        };
        return d2PM;
    }(S9HM);
    var r26M = function(W2PM) {
        function C2PM(y2PM, a2PM, E2PM, P2PM) {
            var m2PM = W2PM.call(this, y2PM, a2PM, E2PM, P2PM) || this;
            m2PM.onChangeEmitter = new J9HM.EventEmitter();
            return m2PM;
        }
        G66M(C2PM, W2PM);
        Object.defineProperty(C2PM.prototype, "value", {
            set: function K2PM(V2PM) {
                this.setNewValueProxy(V2PM);
            },
            enumerable: true,
            configurable: true
        });
        C2PM.prototype.setNewValue = function(z2PM) {
            if (this._instance) {
                var l2PM = this._instance.getVal();
                if (l2PM !== z2PM) {
                    this._instance.setVal(z2PM, true, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        C2PM.prototype.ngAfterViewInit = function() {
            W2PM.prototype.ngAfterViewInit.call(this);
            var A2PM = j9HM({
                preset: 'time'
            }, this.options, this.optionExtensions);
            this._instance = new S66M(this.element, A2PM);
            if (this.initialValue !== undefined && this.initialValue !== "") {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        C2PM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-numpad-time]',
                exportAs: 'mobiscroll'
            }]
        }];
        C2PM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        C2PM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-numpad-time']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-numpad-timeChange']
            }]
        };
        return C2PM;
    }(S9HM);
    var A26M = function(b2PM) {
        function r2PM(T2PM, f2PM, Q2PM, s2PM) {
            var c2PM = b2PM.call(this, T2PM, f2PM, Q2PM, s2PM) || this;
            c2PM.onChangeEmitter = new J9HM.EventEmitter();
            c2PM.preset = 'timespan';
            return c2PM;
        }
        G66M(r2PM, b2PM);
        Object.defineProperty(r2PM.prototype, "value", {
            set: function k2PM(i2PM) {
                this.setNewValueProxy(i2PM);
            },
            enumerable: true,
            configurable: true
        });
        r2PM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-numpad-timespan]',
                exportAs: 'mobiscroll'
            }]
        }];
        r2PM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        r2PM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-numpad-timespan']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-numpad-timespanChange']
            }]
        };
        return r2PM;
    }(z36M);
    var b16M = {
        inputClass: '',
        values: 5,
        order: 'desc',
        style: 'icon',
        invalid: [],
        icon: {
            filled: 'star3',
            empty: 'star3'
        }
    };
    U9HM.presetShort('rating');
    U9HM.presets.scroller.rating = function(F2PM) {
        var Z7PM = j9HM({}, F2PM.settings),
            v2PM = j9HM(F2PM.settings, b16M, Z7PM),
            X2PM = u9HM(this),
            j2PM = this.id + '_dummy',
            S2PM = u9HM('label[for="' + this.id + '"]').attr('for', j2PM),
            p7PM = v2PM.label !== undefined ? v2PM.label : S2PM.length ? S2PM.text() : X2PM.attr('name'),
            u2PM = v2PM.defaultValue,
            G2PM = [
                []
            ],
            d7PM = {
                data: [],
                label: p7PM,
                circular: false
            },
            g2PM = {},
            H2PM = [],
            w2PM, U2PM = false,
            R2PM, e2PM, O2PM, x2PM, L2PM, M7PM, B2PM, J2PM, N7PM, I2PM = v2PM.style === 'grade' ? 'circle' : 'icon';
        if (X2PM.is('select')) {
            v2PM.values = {};
            u9HM('option', X2PM).each(function() {
                v2PM.values[u9HM(this).val()] = u9HM(this).text();
            });
            u9HM('#' + j2PM).remove();
        }
        if (u9HM.isArray(v2PM.values)) {
            for (R2PM = 0; R2PM < v2PM.values.length; R2PM++) {
                B2PM = +v2PM.values[R2PM];
                if (isNaN(B2PM)) {
                    B2PM = R2PM + 1;
                    U2PM = true;
                }
                H2PM.push({
                    order: B2PM,
                    key: v2PM.values[R2PM],
                    value: v2PM.values[R2PM]
                });
            }
        } else if (u9HM.isPlainObject(v2PM.values)) {
            R2PM = 1;
            U2PM = true;
            for (J2PM in v2PM.values) {
                B2PM = +J2PM;
                if (isNaN(B2PM)) {
                    B2PM = R2PM;
                }
                H2PM.push({
                    order: B2PM,
                    key: J2PM,
                    value: v2PM.values[J2PM]
                });
                R2PM++;
            }
        } else {
            for (R2PM = 1; R2PM <= v2PM.values; R2PM++) {
                H2PM.push({
                    order: R2PM,
                    key: R2PM,
                    value: R2PM
                });
            }
        }
        if (v2PM.showText === undefined && U2PM) {
            v2PM.showText = true;
        }
        if (v2PM.icon.empty === undefined) {
            v2PM.icon.empty = v2PM.icon.filled;
        }
        H2PM.sort(function(D7PM, t7PM) {
            return v2PM.order == 'desc' ? t7PM.order - D7PM.order : D7PM.order - t7PM.order;
        });
        N7PM = v2PM.order == 'desc' ? H2PM[0].order : H2PM[H2PM.length - 1].order;
        for (R2PM = 0; R2PM < H2PM.length; R2PM++) {
            M7PM = H2PM[R2PM].order;
            x2PM = H2PM[R2PM].key;
            L2PM = H2PM[R2PM].value;
            O2PM = '';
            for (e2PM = 1; e2PM < M7PM + 1; e2PM++) {
                O2PM += '<span class="mbsc-rating-' + I2PM + (I2PM === 'circle' ? '' : ' mbsc-ic mbsc-ic-' + v2PM.icon.filled) + ' ">' + (I2PM == 'circle' ? e2PM : ' ') + '</span>';
            }
            for (e2PM = M7PM + 1; e2PM <= N7PM; e2PM++) {
                O2PM += '<span class="mbsc-rating-' + I2PM + (I2PM === 'circle' ? ' mbsc-rating-circle-unf' : ' mbsc-ic mbsc-ic-' + (v2PM.icon.empty ? v2PM.icon.empty + ' mbsc-rating-icon-unf' : '') + (v2PM.icon.empty === v2PM.icon.filled ? ' mbsc-rating-icon-same' : '')) + '"></span>';
            }
            if (u2PM === undefined) {
                u2PM = x2PM;
            }
            O2PM += v2PM.showText ? '<span class="mbsc-rating-txt">' + L2PM + '</span>' : '';
            d7PM.data.push({
                value: x2PM,
                display: O2PM,
                label: L2PM
            });
            g2PM[x2PM] = L2PM;
        }
        if (X2PM.is('select')) {
            w2PM = u9HM('<input type="text" id="' + j2PM + '" value="' + g2PM[X2PM.val()] + '" class="' + v2PM.inputClass + '" placeholder="' + (v2PM.placeholder || '') + '" readonly />').insertBefore(X2PM);
        }
        G2PM[0].push(d7PM);
        if (w2PM) {
            F2PM.attachShow(w2PM);
        }
        if (X2PM.is('select')) {
            X2PM.hide().closest('.ui-field-contain').trigger('create');
        }
        F2PM.getVal = function(q7PM) {
            var h7PM = F2PM._hasValue ? F2PM[q7PM ? '_tempWheelArray' : '_wheelArray'][0] : null;
            return U9HM.util.isNumeric(h7PM) ? +h7PM : h7PM;
        };
        return {
            anchor: w2PM,
            wheels: G2PM,
            headerText: false,
            compClass: 'mbsc-rating',
            setOnTap: true,
            formatValue: function o7PM(Y7PM) {
                return g2PM[Y7PM[0]];
            },
            parseValue: function n7PM(W7PM) {
                var C7PM;
                for (C7PM in g2PM) {
                    if (w2PM && C7PM == W7PM || !w2PM && g2PM[C7PM] == W7PM) {
                        return [C7PM];
                    }
                }
                return [u2PM];
            },
            validate: function m7PM() {
                return {
                    disabled: [v2PM.invalid]
                };
            },
            onFill: function y7PM(a7PM) {
                if (w2PM) {
                    w2PM.val(a7PM.valueText);
                    X2PM.val(F2PM._tempWheelArray[0]);
                }
            },
            onDestroy: function E7PM() {
                if (w2PM) {
                    w2PM.remove();
                }
                X2PM.show();
            }
        };
    };
    var c16M = this && this.__extends || function() {
        var P7PM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(K7PM, V7PM) {
            K7PM.__proto__ = V7PM;
        } || function(A7PM, l7PM) {
            for (var z7PM in l7PM) {
                if (l7PM.hasOwnProperty(z7PM)) A7PM[z7PM] = l7PM[z7PM];
            }
        };
        return function(b7PM, r7PM) {
            function c7PM() {
                this.constructor = b7PM;
            }
            P7PM(b7PM, r7PM);
            b7PM.prototype = r7PM === null ? Object.create(r7PM) : (c7PM.prototype = r7PM.prototype, new c7PM());
        };
    }();
    var h26M = function(f7PM) {
        function T7PM(s7PM, k7PM, i7PM, v7PM) {
            var Q7PM = f7PM.call(this, s7PM, k7PM, i7PM, v7PM) || this;
            Q7PM.onChangeEmitter = new J9HM.EventEmitter();
            return Q7PM;
        }
        c16M(T7PM, f7PM);
        Object.defineProperty(T7PM.prototype, "value", {
            set: function R7PM(H7PM) {
                this.setNewValueProxy(H7PM);
            },
            enumerable: true,
            configurable: true
        });
        T7PM.prototype.setNewValue = function(X7PM) {
            if (this._instance) {
                var w7PM = this._instance.getVal();
                if (w7PM !== X7PM) {
                    this._instance.setVal(X7PM, true, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        T7PM.prototype.ngAfterViewInit = function() {
            f7PM.prototype.ngAfterViewInit.call(this);
            var B7PM = j9HM({
                preset: 'rating'
            }, this.options, this.optionExtensions);
            this._instance = new N66M(this.element, B7PM);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        T7PM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-rating]',
                exportAs: 'mobiscroll'
            }]
        }];
        T7PM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        T7PM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-rating']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-ratingChange']
            }]
        };
        return T7PM;
    }(S9HM);
    var M26M = U9HM.presets.scroller;
    var C66M = U9HM.util.datetime;
    var s16M = U9HM.util;
    var k16M = s16M.testTouch;
    var i16M = {
        autoCorrect: true,
        showSelector: true,
        minRange: 1,
        rangeTap: true,
        fromText: 'Start',
        toText: 'End'
    };
    U9HM.presetShort('range');
    M26M.range = function(F7PM) {
        function P1PM(b1PM, c1PM) {
            if (b1PM) {
                b1PM.setFullYear(c1PM.getFullYear());
                b1PM.setMonth(c1PM.getMonth());
                b1PM.setDate(c1PM.getDate());
            }
        }

        function r1PM(T1PM) {
            F7PM._startDate = j7PM = O7PM;
            F7PM._endDate = x7PM = I7PM;
            if (e7PM.startInput) {
                u9HM(e7PM.startInput).val(G7PM);
                if (T1PM) {
                    u9HM(e7PM.startInput).trigger('change');
                }
            }
            if (e7PM.endInput) {
                u9HM(e7PM.endInput).val(L7PM);
                if (T1PM) {
                    u9HM(e7PM.endInput).trigger('change');
                }
            }
        }

        function y1PM(Q1PM, s1PM) {
            var f1PM = true;
            if (Q1PM && O7PM && I7PM) {
                if (I7PM - O7PM > e7PM.maxRange - 1) {
                    if (g7PM) {
                        O7PM = new Date(I7PM - e7PM.maxRange + 1);
                    } else {
                        I7PM = new Date(+O7PM + e7PM.maxRange - 1);
                    }
                }
                if (I7PM - O7PM < e7PM.minRange - 1) {
                    if (g7PM) {
                        O7PM = new Date(I7PM - e7PM.minRange + 1);
                    } else {
                        I7PM = new Date(+O7PM + e7PM.minRange - 1);
                    }
                }
            }
            if (!O7PM || !I7PM) {
                f1PM = false;
            }
            if (s1PM) {
                z1PM();
            }
            return f1PM;
        }

        function l1PM() {
            return O7PM && I7PM ? Math.max(1, Math.round((new Date(I7PM).setHours(0, 0, 0, 0) - new Date(O7PM).setHours(0, 0, 0, 0)) / 86400000) + 1) : 0;
        }

        function A1PM(k1PM) {
            k1PM.addClass('mbsc-range-btn-sel').attr('aria-checked', 'true').find('.mbsc-range-btn').addClass(q1PM);
        }

        function m1PM() {
            if (C1PM && u7PM) {
                u9HM('.mbsc-range-btn-c', u7PM).removeClass('mbsc-range-btn-sel').removeAttr('aria-checked').find('.mbsc-range-btn', u7PM).removeClass(q1PM);
                A1PM(u9HM('.mbsc-range-btn-c', u7PM).eq(g7PM));
            }
        }

        function z1PM() {
            var i1PM, X1PM, v1PM, w1PM, R1PM, H1PM = 0,
                B1PM = J7PM || !g7PM ? ' mbsc-cal-day-hl mbsc-cal-sel-start' : ' mbsc-cal-sel-start',
                e1PM = J7PM || g7PM ? ' mbsc-cal-day-hl mbsc-cal-sel-end' : ' mbsc-cal-sel-end';
            G7PM = O7PM ? C66M.formatDate(U7PM, O7PM, e7PM) : '';
            L7PM = I7PM ? C66M.formatDate(U7PM, I7PM, e7PM) : '';
            if (u7PM) {
                u9HM('.mbsc-range-btn-v-start', u7PM).html(G7PM || '&nbsp;');
                u9HM('.mbsc-range-btn-v-end', u7PM).html(L7PM || '&nbsp;');
                i1PM = O7PM ? new Date(O7PM) : null;
                v1PM = I7PM ? new Date(I7PM) : null;
                if (!i1PM && v1PM) {
                    i1PM = new Date(v1PM);
                }
                if (!v1PM && i1PM) {
                    v1PM = new Date(i1PM);
                }
                R1PM = g7PM ? v1PM : i1PM;
                u9HM('.mbsc-cal-table .mbsc-cal-day-sel .mbsc-cal-day-i', u7PM).removeClass(q1PM);
                u9HM('.mbsc-cal-table .mbsc-cal-day-hl', u7PM).removeClass(D1PM);
                u9HM('.mbsc-cal-table .mbsc-cal-day-sel', u7PM).removeClass('mbsc-cal-day-sel mbsc-cal-sel-start mbsc-cal-sel-end').removeAttr('aria-selected');
                if (i1PM && v1PM) {
                    X1PM = i1PM.setHours(0, 0, 0, 0);
                    w1PM = v1PM.setHours(0, 0, 0, 0);
                    while (v1PM >= i1PM && H1PM < 84) {
                        u9HM('.mbsc-cal-day[data-full="' + R1PM.getFullYear() + '-' + R1PM.getMonth() + '-' + R1PM.getDate() + '"]', u7PM).addClass('mbsc-cal-day-sel' + (R1PM.getTime() === X1PM ? B1PM : '') + (R1PM.getTime() === w1PM ? e1PM : '')).attr('aria-selected', 'true').find('.mbsc-cal-day-i ').addClass(q1PM);
                        R1PM.setDate(R1PM.getDate() + (g7PM ? -1 : 1));
                        H1PM++;
                    }
                }
            }
        }

        function Y1PM(F1PM, I1PM) {
            return {
                h: F1PM ? F1PM.getHours() : I1PM ? 23 : 0,
                i: F1PM ? F1PM.getMinutes() : I1PM ? 59 : 0,
                s: F1PM ? F1PM.getSeconds() : I1PM ? 59 : 0
            };
        }
        var Z1PM, u7PM, M1PM, U7PM, n1PM, S7PM, p1PM, G7PM, L7PM, O7PM, N1PM, I7PM, h1PM, V1PM, K1PM, E1PM, C1PM, j7PM = F7PM._startDate,
            x7PM = F7PM._endDate,
            g7PM = 0,
            t1PM = new Date(),
            a1PM = j9HM({}, F7PM.settings),
            e7PM = j9HM(F7PM.settings, i16M, a1PM),
            o1PM = e7PM.anchor,
            J7PM = e7PM.rangeTap,
            q1PM = e7PM.activeClass || '',
            W1PM = 'mbsc-fr-btn-d ' + (e7PM.disabledClass || ''),
            D1PM = 'mbsc-cal-day-hl',
            d1PM = e7PM.defaultValue === null ? [] : e7PM.defaultValue || [new Date(t1PM.setHours(0, 0, 0, 0)), new Date(t1PM.getFullYear(), t1PM.getMonth(), t1PM.getDate() + 6, 23, 59, 59, 999)];
        if (J7PM) {
            e7PM.tabs = true;
        }
        n1PM = M26M.calbase.call(this, F7PM);
        Z1PM = j9HM({}, n1PM);
        U7PM = F7PM.format;
        V1PM = e7PM.controls.join('') === 'time';
        C1PM = e7PM.controls.length == 1 && e7PM.controls[0] == 'calendar' ? e7PM.showSelector : true;
        if (e7PM.startInput) {
            K1PM = u9HM(e7PM.startInput).prop('readonly');
            F7PM.attachShow(u9HM(e7PM.startInput).prop('readonly', true), function() {
                g7PM = 0;
                e7PM.anchor = o1PM || u9HM(e7PM.startInput);
            });
        }
        if (e7PM.endInput) {
            E1PM = u9HM(e7PM.endInput).prop('readonly');
            F7PM.attachShow(u9HM(e7PM.endInput).prop('readonly', true), function() {
                g7PM = 1;
                e7PM.anchor = o1PM || u9HM(e7PM.endInput);
            });
        }
        F7PM.setVal = function(u1PM, U1PM, j1PM, J1PM, x1PM) {
            var g1PM = u1PM || [],
                O1PM = u1PM;
            if (g1PM[0] === undefined || g1PM[0] === null || g1PM[0].getTime) {
                p1PM = true;
                O7PM = g1PM[0] || null;
                G7PM = O7PM ? C66M.formatDate(U7PM, O7PM, e7PM) : '';
                if (!g7PM) {
                    O1PM = Z1PM.parseValue(G7PM, F7PM);
                }
            }
            if (g1PM[1] === undefined || g1PM[1] === null || g1PM[1].getTime) {
                p1PM = true;
                I7PM = g1PM[1] || null;
                L7PM = I7PM ? C66M.formatDate(U7PM, I7PM, e7PM) : '';
                if (g7PM) {
                    O1PM = Z1PM.parseValue(L7PM, F7PM);
                }
            }
            if (!J1PM) {
                F7PM._startDate = j7PM = O7PM;
                F7PM._endDate = x7PM = I7PM;
            }
            F7PM._setVal(O1PM, U1PM, j1PM, J1PM, x1PM);
        };
        F7PM.getVal = function(L1PM) {
            return L1PM ? [O7PM, I7PM] : F7PM._hasValue ? [j7PM, x7PM] : null;
        };
        F7PM.getDayProps = function(S1PM) {
            var G1PM = O7PM ? new Date(O7PM.getFullYear(), O7PM.getMonth(), O7PM.getDate()) : null,
                d8PM = I7PM ? new Date(I7PM.getFullYear(), I7PM.getMonth(), I7PM.getDate()) : null;
            return {
                selected: G1PM && d8PM && S1PM >= G1PM && S1PM <= I7PM,
                cssClass: ((J7PM || !g7PM) && G1PM && G1PM.getTime() === S1PM.getTime() || (J7PM || g7PM) && d8PM && d8PM.getTime() === S1PM.getTime() ? D1PM : '') + (G1PM && G1PM.getTime() === S1PM.getTime() ? ' mbsc-cal-sel-start' : '') + (d8PM && d8PM.getTime() === S1PM.getTime() ? ' mbsc-cal-sel-end' : '')
            };
        };
        F7PM.setActiveDate = function(Z8PM) {
            var M8PM;
            g7PM = Z8PM == 'start' ? 0 : 1;
            M8PM = Z8PM == 'start' ? O7PM : I7PM;
            if (F7PM.isVisible()) {
                m1PM();
                if (!J7PM) {
                    u9HM('.mbsc-cal-table .mbsc-cal-day-hl', u7PM).removeClass(D1PM);
                    if (M8PM) {
                        u9HM('.mbsc-cal-day[data-full="' + M8PM.getFullYear() + '-' + M8PM.getMonth() + '-' + M8PM.getDate() + '"]', u7PM).addClass(D1PM);
                    }
                }
                if (M8PM) {
                    S7PM = true;
                    F7PM.setDate(M8PM, false, 1000, true);
                }
            }
        };
        F7PM.getValue = F7PM.getVal;
        j9HM(n1PM, {
            highlight: false,
            outerMonthChange: false,
            formatValue: function p8PM() {
                return G7PM + (e7PM.endInput ? '' : L7PM ? ' - ' + L7PM : '');
            },
            parseValue: function N8PM(t8PM) {
                var D8PM = t8PM ? t8PM.split(' - ') : [];
                e7PM.defaultValue = d1PM[1];
                if (e7PM.endInput) {
                    x7PM = u9HM(e7PM.endInput).val() ? C66M.parseDate(U7PM, u9HM(e7PM.endInput).val(), e7PM) : d1PM[1];
                } else {
                    x7PM = D8PM[1] ? C66M.parseDate(U7PM, D8PM[1], e7PM) : d1PM[1];
                }
                e7PM.defaultValue = d1PM[0];
                if (e7PM.startInput) {
                    j7PM = u9HM(e7PM.startInput).val() ? C66M.parseDate(U7PM, u9HM(e7PM.startInput).val(), e7PM) : d1PM[0];
                } else {
                    j7PM = D8PM[0] ? C66M.parseDate(U7PM, D8PM[0], e7PM) : d1PM[0];
                }
                e7PM.defaultValue = d1PM[g7PM];
                G7PM = j7PM ? C66M.formatDate(U7PM, j7PM, e7PM) : '';
                L7PM = x7PM ? C66M.formatDate(U7PM, x7PM, e7PM) : '';
                F7PM._startDate = j7PM;
                F7PM._endDate = x7PM;
                return Z1PM.parseValue(g7PM ? L7PM : G7PM, F7PM);
            },
            onFill: function h8PM(q8PM) {
                r1PM(q8PM.change);
            },
            onBeforeClose: function o8PM(Y8PM) {
                if (Y8PM.button === 'set' && !y1PM(true, true)) {
                    F7PM.setActiveDate(g7PM ? 'start' : 'end');
                    return false;
                }
            },
            onHide: function n8PM() {
                Z1PM.onHide.call(F7PM);
                g7PM = 0;
                u7PM = null;
                e7PM.anchor = o1PM;
            },
            onClear: function C8PM() {
                if (J7PM) {
                    g7PM = 0;
                }
            },
            onBeforeShow: function W8PM() {
                e7PM.headerText = false;
                O7PM = j7PM;
                I7PM = x7PM;
                N1PM = Y1PM(O7PM, 0);
                h1PM = Y1PM(I7PM, 1);
                if (e7PM.counter) {
                    e7PM.headerText = function() {
                        var m8PM = l1PM();
                        return (m8PM > 1 ? e7PM.selectedPluralText || e7PM.selectedText : e7PM.selectedText).replace(/{count}/, m8PM);
                    };
                }
                p1PM = true;
            },
            onMarkupReady: function y8PM(a8PM) {
                var E8PM;
                if (O7PM) {
                    S7PM = true;
                    F7PM.setDate(O7PM, false, 0, true);
                    O7PM = F7PM.getDate(true);
                }
                if (I7PM) {
                    S7PM = true;
                    F7PM.setDate(I7PM, false, 0, true);
                    I7PM = F7PM.getDate(true);
                }
                if (g7PM && I7PM || !g7PM && O7PM) {
                    S7PM = true;
                    F7PM.setDate(g7PM ? I7PM : O7PM, false, 0, true);
                }
                z1PM();
                Z1PM.onMarkupReady.call(this, a8PM);
                u7PM = u9HM(a8PM.target);
                u7PM.addClass('mbsc-range');
                if (C1PM) {
                    E8PM = '<div class="mbsc-range-btn-t" role="radiogroup">' + '<div class="mbsc-range-btn-c mbsc-range-btn-start"><div role="radio" class="mbsc-fr-btn-e mbsc-fr-btn-nhl mbsc-range-btn">' + e7PM.fromText + '<div class="mbsc-range-btn-v mbsc-range-btn-v-start">' + (G7PM || '&nbsp;') + '</div></div></div>' + '<div class="mbsc-range-btn-c mbsc-range-btn-end"><div role="radio" class="mbsc-fr-btn-e mbsc-fr-btn-nhl mbsc-range-btn">' + e7PM.toText + '<div class="mbsc-range-btn-v mbsc-range-btn-v-end">' + (L7PM || '&nbsp;') + '</div></div></div>' + '</div>';
                    u9HM('.mbsc-cal-tabs', u7PM).before(E8PM);
                    m1PM();
                }
                u9HM('.mbsc-range-btn-c', u7PM).on('touchstart click', function(P8PM) {
                    if (k16M(P8PM, this)) {
                        F7PM.showMonthView();
                        F7PM.setActiveDate(u9HM(this).index() ? 'end' : 'start');
                    }
                });
            },
            onDayChange: function K8PM(V8PM) {
                V8PM.active = g7PM ? 'end' : 'start';
                M1PM = true;
            },
            onSetDate: function z8PM(r8PM) {
                var l8PM = r8PM.date,
                    A8PM = F7PM.order;
                if (!S7PM) {
                    if (A8PM.h === undefined) {
                        l8PM.setHours(g7PM ? 23 : 0);
                    }
                    if (A8PM.i === undefined) {
                        l8PM.setMinutes(g7PM ? 59 : 0);
                    }
                    if (A8PM.s === undefined) {
                        l8PM.setSeconds(g7PM ? 59 : 0);
                    }
                    l8PM.setMilliseconds(g7PM ? 999 : 0);
                    if (!p1PM || M1PM) {
                        if (J7PM && M1PM) {
                            if (g7PM == 1 && l8PM < O7PM) {
                                g7PM = 0;
                            }
                            if (g7PM) {
                                l8PM.setHours(h1PM.h, h1PM.i, h1PM.s, 999);
                            } else {
                                l8PM.setHours(N1PM.h, N1PM.i, N1PM.s, 0);
                            }
                        }
                        if (g7PM) {
                            I7PM = new Date(l8PM);
                            h1PM = Y1PM(I7PM);
                        } else {
                            O7PM = new Date(l8PM);
                            N1PM = Y1PM(O7PM);
                        }
                        if (V1PM) {
                            P1PM(O7PM, l8PM);
                            P1PM(I7PM, l8PM);
                        }
                        if (J7PM && M1PM && !g7PM) {
                            I7PM = null;
                        }
                    }
                }
                F7PM._isValid = y1PM(p1PM || M1PM || e7PM.autoCorrect, !S7PM);
                r8PM.active = g7PM ? 'end' : 'start';
                if (!S7PM && J7PM) {
                    if (M1PM) {
                        g7PM = g7PM ? 0 : 1;
                    }
                    m1PM();
                }
                if (F7PM.isVisible()) {
                    if (F7PM._isValid) {
                        u9HM('.mbsc-fr-btn-s .mbsc-fr-btn', F7PM._markup).removeClass(W1PM);
                    } else {
                        u9HM('.mbsc-fr-btn-s .mbsc-fr-btn', F7PM._markup).addClass(W1PM);
                    }
                }
                M1PM = false;
                p1PM = false;
                S7PM = false;
            },
            onTabChange: function b8PM(c8PM) {
                if (c8PM.tab != 'calendar') {
                    F7PM.setDate(g7PM ? I7PM : O7PM, false, 1000, true);
                }
                y1PM(true, true);
            },
            onDestroy: function T8PM() {
                u9HM(e7PM.startInput).prop('readonly', K1PM);
                u9HM(e7PM.endInput).prop('readonly', E1PM);
            }
        });
        return n1PM;
    };
    var v16M = this && this.__extends || function() {
        var f8PM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(Q8PM, s8PM) {
            Q8PM.__proto__ = s8PM;
        } || function(v8PM, i8PM) {
            for (var k8PM in i8PM) {
                if (i8PM.hasOwnProperty(k8PM)) v8PM[k8PM] = i8PM[k8PM];
            }
        };
        return function(H8PM, R8PM) {
            function X8PM() {
                this.constructor = H8PM;
            }
            f8PM(H8PM, R8PM);
            H8PM.prototype = R8PM === null ? Object.create(R8PM) : (X8PM.prototype = R8PM.prototype, new X8PM());
        };
    }();
    var Q46M = function(B8PM) {
        function w8PM(F8PM, I8PM, g8PM, O8PM) {
            var e8PM = B8PM.call(this, F8PM, I8PM, g8PM, O8PM) || this;
            e8PM.onChangeEmitter = new J9HM.EventEmitter();
            return e8PM;
        }
        v16M(w8PM, B8PM);
        Object.defineProperty(w8PM.prototype, "value", {
            set: function u8PM(J8PM) {
                this.setNewValueProxy(J8PM);
            },
            enumerable: true,
            configurable: true
        });
        w8PM.prototype.setNewValue = function(U8PM) {
            if (this._instance) {
                if (!E36M(U8PM, this._instance.getVal())) {
                    this._instance.setVal(U8PM, true, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        w8PM.prototype.ngAfterViewInit = function() {
            B8PM.prototype.ngAfterViewInit.call(this);
            var j8PM = j9HM({
                preset: 'range'
            }, this.options, this.optionExtensions);
            this._instance = new N66M(this.element, j8PM);
            if (this.initialValue) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        w8PM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-range]',
                exportAs: 'mobiscroll'
            }]
        }];
        w8PM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        w8PM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-range']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-rangeChange']
            }]
        };
        return w8PM;
    }(S9HM);
    var H16M = this && this.__extends || function() {
        var x8PM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(L8PM, G8PM) {
            L8PM.__proto__ = G8PM;
        } || function(M0PM, d0PM) {
            for (var S8PM in d0PM) {
                if (d0PM.hasOwnProperty(S8PM)) M0PM[S8PM] = d0PM[S8PM];
            }
        };
        return function(p0PM, Z0PM) {
            function N0PM() {
                this.constructor = p0PM;
            }
            x8PM(p0PM, Z0PM);
            p0PM.prototype = Z0PM === null ? Object.create(Z0PM) : (N0PM.prototype = Z0PM.prototype, new N0PM());
        };
    }();
    var E76M = function(t0PM) {
        function D0PM(q0PM, o0PM, Y0PM, n0PM) {
            var h0PM = t0PM.call(this, q0PM, o0PM, Y0PM, n0PM) || this;
            h0PM.onChangeEmitter = new J9HM.EventEmitter();
            return h0PM;
        }
        H16M(D0PM, t0PM);
        Object.defineProperty(D0PM.prototype, "value", {
            set: function C0PM(W0PM) {
                this.setNewValueProxy(W0PM);
            },
            enumerable: true,
            configurable: true
        });
        D0PM.prototype.setNewValue = function(m0PM) {
            if (this._instance) {
                var y0PM = this._instance.getVal();
                if (y0PM !== m0PM) {
                    this._instance.setVal(m0PM, true, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        D0PM.prototype.ngAfterViewInit = function() {
            t0PM.prototype.ngAfterViewInit.call(this);
            var a0PM = j9HM({}, this.options, this.optionExtensions);
            this._instance = new N66M(this.element, a0PM);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        D0PM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-scroller]',
                exportAs: 'mobiscroll'
            }]
        }];
        D0PM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        D0PM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-scroller']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-scrollerChange']
            }]
        };
        return D0PM;
    }(S9HM);
    var w16M = 0;
    U9HM.util.getJson = n76M;
    var e66M = U9HM.util;
    var W46M = e66M.isString;
    var O16M = {
        inputClass: '',
        invalid: [],
        rtl: false,
        showInput: true,
        groupLabel: 'Groups',
        dataHtml: 'html',
        dataText: 'text',
        dataValue: 'value',
        dataGroup: 'group',
        dataDisabled: 'disabled',
        filterPlaceholderText: 'Type to filter',
        filterEmptyText: 'No results',
        filterClearIcon: 'material-close'
    };
    U9HM.presetShort('select');
    U9HM.presets.scroller.select = function(Q0PM) {
        function q5PM(k5PM) {
            var Q5PM, w5PM, s5PM, T5PM, X5PM, f5PM, R5PM = 0,
                i5PM = 0,
                v5PM = {};
            i0PM = {};
            F0PM = {};
            H0PM = [];
            M5PM = [];
            O0PM.length = 0;
            if (d5PM) {
                u9HM.each(L0PM, function(e5PM, B5PM) {
                    X5PM = B5PM[f0PM.dataText];
                    w5PM = B5PM[f0PM.dataHtml];
                    f5PM = B5PM[f0PM.dataValue];
                    s5PM = B5PM[f0PM.dataGroup];
                    T5PM = {
                        value: f5PM,
                        html: w5PM,
                        text: X5PM,
                        index: e5PM
                    };
                    i0PM[f5PM] = T5PM;
                    if (!k5PM || n5PM(X5PM, k5PM)) {
                        H0PM.push(T5PM);
                        if (U0PM) {
                            if (v5PM[s5PM] === undefined) {
                                Q5PM = {
                                    text: s5PM,
                                    value: i5PM,
                                    options: [],
                                    index: i5PM
                                };
                                F0PM[i5PM] = Q5PM;
                                v5PM[s5PM] = i5PM;
                                M5PM.push(Q5PM);
                                i5PM++;
                            } else {
                                Q5PM = F0PM[v5PM[s5PM]];
                            }
                            if (u0PM) {
                                T5PM.index = Q5PM.options.length;
                            }
                            T5PM.group = v5PM[s5PM];
                            Q5PM.options.push(T5PM);
                        }
                        if (B5PM[f0PM.dataDisabled]) {
                            O0PM.push(f5PM);
                        }
                    }
                });
            } else {
                if (U0PM) {
                    var H5PM = true;
                    u9HM('optgroup', k0PM).each(function(F5PM) {
                        F0PM[F5PM] = {
                            text: this.label,
                            value: F5PM,
                            options: [],
                            index: F5PM
                        };
                        H5PM = true;
                        u9HM('option', this).each(function(I5PM) {
                            T5PM = {
                                value: this.value,
                                text: this.text,
                                index: u0PM ? I5PM : R5PM++,
                                group: F5PM
                            };
                            i0PM[this.value] = T5PM;
                            if (!k5PM || n5PM(this.text, k5PM)) {
                                if (H5PM) {
                                    M5PM.push(F0PM[F5PM]);
                                    H5PM = false;
                                }
                                H0PM.push(T5PM);
                                F0PM[F5PM].options.push(T5PM);
                                if (this.disabled) {
                                    O0PM.push(this.value);
                                }
                            }
                        });
                    });
                } else {
                    u9HM('option', k0PM).each(function(g5PM) {
                        T5PM = {
                            value: this.value,
                            text: this.text,
                            index: g5PM
                        };
                        i0PM[this.value] = T5PM;
                        if (!k5PM || n5PM(this.text, k5PM)) {
                            H0PM.push(T5PM);
                            if (this.disabled) {
                                O0PM.push(this.value);
                            }
                        }
                    });
                }
            }
            if (H0PM.length) {
                m5PM = H0PM[0].value;
            }
            if (C5PM) {
                H0PM = [];
                R5PM = 0;
                u9HM.each(F0PM, function(u5PM, O5PM) {
                    if (O5PM.options.length) {
                        f5PM = '__group' + u5PM;
                        T5PM = {
                            text: O5PM.text,
                            value: f5PM,
                            group: u5PM,
                            index: R5PM++,
                            cssClass: 'mbsc-sel-gr'
                        };
                        i0PM[f5PM] = T5PM;
                        H0PM.push(T5PM);
                        O0PM.push(T5PM.value);
                        u9HM.each(O5PM.options, function(U5PM, J5PM) {
                            J5PM.index = R5PM++;
                            H0PM.push(J5PM);
                        });
                    }
                });
            }
            if (S0PM) {
                if (H0PM.length) {
                    S0PM.removeClass('mbsc-sel-empty-v');
                } else {
                    S0PM.addClass('mbsc-sel-empty-v');
                }
            }
        }

        function a5PM(x5PM, G5PM, S5PM) {
            var j5PM, L5PM = [];
            for (j5PM = 0; j5PM < x5PM.length; j5PM++) {
                L5PM.push({
                    value: x5PM[j5PM].value,
                    display: x5PM[j5PM].html || x5PM[j5PM].text,
                    cssClass: x5PM[j5PM].cssClass
                });
            }
            return {
                circular: false,
                multiple: G5PM,
                data: L5PM,
                label: S5PM
            };
        }

        function E5PM() {
            return a5PM(M5PM, false, f0PM.groupLabel);
        }

        function o5PM() {
            return a5PM(u0PM ? F0PM[B0PM].options : H0PM, g0PM, W5PM);
        }

        function K5PM() {
            var M9PM, Z9PM, d9PM = [
                []
            ];
            if (w0PM) {
                M9PM = E5PM();
                if (h5PM) {
                    d9PM[0][X0PM] = M9PM;
                } else {
                    d9PM[X0PM] = [M9PM];
                }
            }
            Z9PM = o5PM();
            if (h5PM) {
                d9PM[0][s0PM] = Z9PM;
            } else {
                d9PM[s0PM] = [Z9PM];
            }
            return d9PM;
        }

        function Z5PM(p9PM) {
            if (e0PM) {
                if (p9PM && W46M(p9PM)) {
                    p9PM = p9PM.split(',');
                }
                if (u9HM.isArray(p9PM)) {
                    p9PM = p9PM[0];
                }
            }
            v0PM = p9PM === undefined || p9PM === null || p9PM === '' || !i0PM[p9PM] ? m5PM : p9PM;
            if (w0PM) {
                B0PM = i0PM[v0PM] ? i0PM[v0PM].group : null;
            }
        }

        function c5PM(D9PM, t9PM) {
            var N9PM = D9PM ? Q0PM._tempWheelArray : Q0PM._hasValue ? Q0PM._wheelArray : null;
            return N9PM ? f0PM.group && t9PM ? N9PM : N9PM[s0PM] : null;
        }

        function b5PM(Y9PM) {
            var h9PM, q9PM, o9PM = [];
            if (g0PM) {
                for (h9PM in Q0PM._tempSelected[s0PM]) {
                    o9PM.push(D5PM[h9PM] || (i0PM[h9PM] ? i0PM[h9PM].text : ''));
                }
                return o9PM.join(', ');
            }
            q9PM = Y9PM[s0PM];
            return i0PM[q9PM] ? i0PM[q9PM].text : '';
        }

        function A5PM() {
            var n9PM = Q0PM.getVal(),
                C9PM = Q0PM._tempValue;
            if (!(f0PM.filter && f0PM.display == 'inline')) {
                R0PM.val(C9PM);
            }
            if (k0PM[0] !== R0PM[0]) {
                k0PM.val(n9PM);
            }
        }

        function r5PM() {
            var W9PM = {};
            W9PM[s0PM] = o5PM();
            p5PM = true;
            Q0PM.changeWheel(W9PM);
        }

        function n5PM(y9PM, m9PM) {
            m9PM = m9PM.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
            return y9PM.match(new RegExp(m9PM, 'ig'));
        }

        function z5PM(a9PM) {
            return f0PM.data.dataField ? a9PM[f0PM.data.dataField] : f0PM.data.processResponse ? f0PM.data.processResponse(a9PM) : a9PM;
        }

        function V5PM(P9PM) {
            var E9PM = {};
            q5PM(P9PM);
            f0PM.wheels = K5PM();
            Z5PM(v0PM);
            E9PM[s0PM] = o5PM();
            Q0PM._tempWheelArray[s0PM] = v0PM;
            if (w0PM) {
                E9PM[X0PM] = E5PM();
                Q0PM._tempWheelArray[X0PM] = B0PM;
            }
            if (Q0PM._isVisible) {
                Q0PM.changeWheel(E9PM, 0, true);
            }
        }
        var R0PM, L0PM, m5PM, y5PM, I0PM, B0PM, M5PM, F0PM, X0PM, x0PM, v0PM, H0PM, s0PM, p5PM, D5PM = {},
            Y5PM = 1000,
            k0PM = u9HM(this),
            l5PM = j9HM({}, Q0PM.settings),
            f0PM = j9HM(Q0PM.settings, O16M, l5PM),
            S0PM = u9HM('<div class="mbsc-sel-empty">' + f0PM.filterEmptyText + '</div>'),
            P5PM = f0PM.readonly,
            i0PM = {},
            t5PM = f0PM.layout || (/top|bottom|inline/.test(f0PM.display) || f0PM.filter ? 'liquid' : ''),
            h5PM = t5PM == 'liquid',
            e0PM = e66M.isNumeric(f0PM.select) ? f0PM.select : f0PM.select == 'multiple' || k0PM.prop('multiple'),
            g0PM = e0PM || (f0PM.filter ? 1 : false),
            G0PM = this.id + '_dummy',
            N5PM = u9HM('label[for="' + this.id + '"]').attr('for', G0PM),
            W5PM = f0PM.label !== undefined ? f0PM.label : N5PM.length ? N5PM.text() : k0PM.attr('name'),
            d5PM = !!f0PM.data,
            U0PM = d5PM ? !!f0PM.group : u9HM('optgroup', k0PM).length,
            J0PM = f0PM.group,
            w0PM = U0PM && J0PM && J0PM.groupWheel !== false,
            u0PM = U0PM && J0PM && w0PM && J0PM.clustered === true,
            C5PM = U0PM && (!J0PM || J0PM.header !== false && !u0PM),
            j0PM = k0PM.val() || (e0PM ? [] : ['']),
            O0PM = [];
        Q0PM.setVal = function(K9PM, z9PM, l9PM, V9PM, A9PM) {
            if (g0PM) {
                if (K9PM && !e0PM) {
                    K9PM = [K9PM];
                }
                if (K9PM && W46M(K9PM)) {
                    K9PM = K9PM.split(',');
                }
                Q0PM._tempSelected[s0PM] = e66M.arrayToObject(K9PM);
                if (!V9PM) {
                    Q0PM._selected[s0PM] = e66M.arrayToObject(K9PM);
                }
                K9PM = K9PM ? K9PM[0] : null;
            }
            Q0PM._setVal(K9PM, z9PM, l9PM, V9PM, A9PM);
        };
        Q0PM.getVal = function(b9PM, c9PM) {
            if (g0PM) {
                var r9PM = e66M.objectToArray(b9PM ? Q0PM._tempSelected[s0PM] : Q0PM._selected[s0PM]);
                return e0PM ? r9PM : r9PM.length ? r9PM[0] : null;
            }
            return c5PM(b9PM, c9PM);
        };
        Q0PM.refresh = function(T9PM, f9PM) {
            if (T9PM) {
                L0PM = T9PM;
            } else if (u9HM.isArray(f0PM.data)) {
                L0PM = f0PM.data;
            }
            if (!T9PM && x0PM && f9PM === undefined) {
                n76M(f0PM.data.url, function(Q9PM) {
                    L0PM = z5PM(Q9PM);
                    V5PM();
                }, f0PM.data.dataType);
            } else {
                V5PM(f9PM);
            }
        };
        if (!f0PM.invalid.length) {
            f0PM.invalid = O0PM;
        }
        if (w0PM) {
            X0PM = 0;
            s0PM = 1;
        } else {
            X0PM = -1;
            s0PM = 0;
        }
        if (g0PM) {
            if (e0PM) {
                k0PM.prop('multiple', true);
            }
            if (j0PM && W46M(j0PM)) {
                j0PM = j0PM.split(',');
            }
            Q0PM._selected[s0PM] = e66M.arrayToObject(j0PM);
        }
        if (Q0PM._dummyInput) {
            Q0PM._dummyInput.remove();
        }
        if (k0PM.next().is('input.mbsc-control')) {
            R0PM = k0PM.off('.mbsc-form').next().removeAttr('tabindex');
        } else {
            if (f0PM.input) {
                R0PM = u9HM(f0PM.input);
            } else {
                if (f0PM.filter && f0PM.display == 'inline') {
                    Q0PM._dummyInput = u9HM('<div class="mbsc-sel-input-wrap"><input type="text" id="' + G0PM + '" class="mbsc-control ' + f0PM.inputClass + '" readonly /></div>');
                } else {
                    R0PM = u9HM('<input type="text" id="' + G0PM + '" class="mbsc-control ' + f0PM.inputClass + '" readonly />');
                    Q0PM._dummyInput = R0PM;
                }
                if (f0PM.showInput) {
                    Q0PM._dummyInput.insertBefore(k0PM);
                    if (!R0PM) {
                        R0PM = Q0PM._dummyInput.find('#' + G0PM);
                    }
                }
            }
        }
        Q0PM.attachShow(R0PM.attr('placeholder', f0PM.placeholder || ''));
        if (R0PM[0] !== k0PM[0]) {
            k0PM.addClass('mbsc-sel-hdn').attr('tabindex', -1);
        }
        if (f0PM.filter) {
            y5PM = f0PM.filter.minLength || 0;
        }
        x0PM = f0PM.data && f0PM.data.url;
        if (x0PM) {
            Q0PM.refresh();
        } else {
            if (d5PM) {
                L0PM = f0PM.data;
            }
            q5PM();
            Z5PM(k0PM.val());
        }
        return {
            layout: t5PM,
            headerText: false,
            anchor: R0PM,
            compClass: 'mbsc-sel' + (w0PM ? ' mbsc-sel-gr-whl' : '') + (g0PM ? ' mbsc-sel-multi' : ''),
            setOnTap: w0PM ? [false, true] : true,
            formatValue: b5PM,
            parseValue: function s9PM(k9PM) {
                Z5PM(k9PM === undefined ? k0PM.val() : k9PM);
                return w0PM ? [B0PM, v0PM] : [v0PM];
            },
            validate: function i9PM(H9PM) {
                var R9PM = H9PM.index,
                    v9PM = [];
                v9PM[s0PM] = f0PM.invalid;
                if (u0PM && !p5PM && R9PM === undefined) {
                    r5PM();
                }
                p5PM = false;
                return {
                    disabled: v9PM
                };
            },
            onRead: A5PM,
            onFill: A5PM,
            onMarkupReady: function X9PM(O9PM, e9PM) {
                if (f0PM.filter) {
                    var F9PM, g9PM, w9PM, I9PM = u9HM('.mbsc-fr-w', O9PM.target),
                        B9PM = u9HM('<span class="mbsc-sel-filter-clear mbsc-ic mbsc-ic-' + f0PM.filterClearIcon + '"></span>');
                    if (f0PM.display == 'inline') {
                        F9PM = R0PM;
                        R0PM.parent().find('.mbsc-sel-filter-clear').remove();
                    } else {
                        I9PM.prepend('<div class="mbsc-input mbsc-sel-filter-cont mbsc-control-w"><span class="mbsc-input-wrap"><input type="text" class="mbsc-sel-filter-input mbsc-control"/></span></div>');
                        F9PM = I9PM.find('.mbsc-sel-filter-input');
                    }
                    I0PM = '';
                    w9PM = F9PM[0];
                    F9PM.prop('readonly', false).attr('placeholder', f0PM.filterPlaceholderText).parent().append(B9PM);
                    I9PM.find('.mbsc-fr-c').prepend(S0PM);
                    e9PM.tap(B9PM, function() {
                        w9PM.value = '';
                        e9PM.refresh();
                        B9PM.removeClass('mbsc-sel-filter-show-clear');
                    });
                    F9PM.on('keydown', function(u9PM) {
                        if (u9PM.keyCode == 13 || u9PM.keyCode == 27) {
                            u9PM.stopPropagation();
                            w9PM.blur();
                        }
                    }).on('keyup', function() {
                        clearTimeout(g9PM);
                        if (w9PM.value.length) {
                            B9PM.addClass('mbsc-sel-filter-show-clear');
                        } else {
                            B9PM.removeClass('mbsc-sel-filter-show-clear');
                        }
                        g9PM = setTimeout(function() {
                            if (I0PM === w9PM.value || e9PM.trigger('onFilter', {
                                    filterText: w9PM.value
                                }) === false) {
                                return;
                            }
                            I0PM = w9PM.value;
                            if (I0PM.length >= y5PM || !I0PM.length) {
                                if (x0PM && f0PM.data.remoteFilter) {
                                    n76M(f0PM.data.url + encodeURIComponent(I0PM), function(J9PM) {
                                        e9PM.refresh(z5PM(J9PM));
                                    }, f0PM.data.dataType);
                                } else {
                                    e9PM.refresh(undefined, I0PM);
                                }
                            }
                        }, 500);
                    });
                }
            },
            onBeforeShow: function U9PM() {
                if (e0PM && f0PM.counter) {
                    f0PM.headerText = function() {
                        var j9PM = 0;
                        u9HM.each(Q0PM._tempSelected[s0PM], function() {
                            j9PM++;
                        });
                        return (j9PM > 1 ? f0PM.selectedPluralText || f0PM.selectedText : f0PM.selectedText).replace(/{count}/, j9PM);
                    };
                }
                Z5PM(k0PM.val());
                if (f0PM.filter) {
                    q5PM(undefined);
                }
                Q0PM.settings.wheels = K5PM();
                p5PM = true;
            },
            onWheelGestureStart: function x9PM(L9PM) {
                if (L9PM.index == X0PM) {
                    f0PM.readonly = [false, true];
                }
            },
            onWheelAnimationEnd: function G9PM(d6NM) {
                var S9PM = Q0PM.getArrayVal(true);
                if (d6NM.index == X0PM) {
                    f0PM.readonly = P5PM;
                    if (S9PM[X0PM] != B0PM) {
                        B0PM = S9PM[X0PM];
                        v0PM = F0PM[B0PM].options[0].value;
                        S9PM[s0PM] = v0PM;
                        if (u0PM) {
                            r5PM();
                        } else {
                            Q0PM.setArrayVal(S9PM, false, false, true, Y5PM);
                        }
                    }
                } else if (d6NM.index == s0PM && S9PM[s0PM] != v0PM) {
                    v0PM = S9PM[s0PM];
                    if (w0PM && i0PM[v0PM] && i0PM[v0PM].group != B0PM) {
                        B0PM = i0PM[v0PM].group;
                        S9PM[X0PM] = B0PM;
                        Q0PM.setArrayVal(S9PM, false, false, true, Y5PM);
                    }
                }
            },
            onItemTap: function M6NM(Z6NM) {
                if (Z6NM.index == s0PM) {
                    D5PM[Z6NM.value] = i0PM[Z6NM.value].text;
                    if (g0PM && !e0PM && Z6NM.selected) {
                        return false;
                    }
                }
            },
            onClose: function p6NM() {
                if (x0PM && f0PM.data.remoteFilter && I0PM) {
                    Q0PM.refresh();
                }
            },
            onDestroy: function N6NM() {
                if (Q0PM._dummyInput) {
                    Q0PM._dummyInput.remove();
                }
                k0PM.removeClass('mbsc-sel-hdn').removeAttr('tabindex');
            }
        };
    };
    var u16M = this && this.__extends || function() {
        var D6NM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(t6NM, h6NM) {
            t6NM.__proto__ = h6NM;
        } || function(Y6NM, o6NM) {
            for (var q6NM in o6NM) {
                if (o6NM.hasOwnProperty(q6NM)) Y6NM[q6NM] = o6NM[q6NM];
            }
        };
        return function(C6NM, n6NM) {
            function W6NM() {
                this.constructor = C6NM;
            }
            D6NM(C6NM, n6NM);
            C6NM.prototype = n6NM === null ? Object.create(n6NM) : (W6NM.prototype = n6NM.prototype, new W6NM());
        };
    }();
    var K26M = function(y6NM) {
        function m6NM(E6NM, P6NM, K6NM, V6NM) {
            var a6NM = y6NM.call(this, E6NM, P6NM, K6NM, V6NM) || this;
            a6NM.onChangeEmitter = new J9HM.EventEmitter();
            return a6NM;
        }
        u16M(m6NM, y6NM);
        Object.defineProperty(m6NM.prototype, "value", {
            set: function z6NM(l6NM) {
                this.setNewValueProxy(l6NM);
            },
            enumerable: true,
            configurable: true
        });
        m6NM.prototype.refreshData = function(A6NM) {
            this._instance.refresh(A6NM);
        };
        m6NM.prototype.ngAfterViewInit = function() {
            y6NM.prototype.ngAfterViewInit.call(this);
            var r6NM = this.target;
            if (r6NM) {
                if (typeof r6NM !== 'string' && r6NM._elementRef && r6NM._elementRef.nativeElement) {
                    r6NM = r6NM._elementRef.nativeElement;
                    var b6NM = u9HM('input', r6NM);
                    if (b6NM.length) {
                        r6NM = b6NM;
                    }
                }
            } else {
                var c6NM = u9HM('input', this.initialElem.nativeElement).length;
                if (c6NM) {
                    r6NM = this.element;
                }
            }
            var T6NM = j9HM({
                preset: 'select',
                input: r6NM
            }, this.options, {
                data: this.data
            }, this.optionExtensions);
            this._instance = new N66M(this.element, T6NM);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        m6NM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-select]',
                exportAs: 'mobiscroll'
            }]
        }];
        m6NM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        m6NM.propDecorators = {
            'target': [{
                type: J9HM.Input,
                args: ['mbsc-target']
            }],
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-select']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-selectChange']
            }]
        };
        return m6NM;
    }(P36M);
    var U16M = {
        autostart: false,
        step: 1,
        useShortLabels: false,
        labels: ['Years', 'Months', 'Days', 'Hours', 'Minutes', 'Seconds', ''],
        labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs', ''],
        startText: 'Start',
        stopText: 'Stop',
        resetText: 'Reset',
        lapText: 'Lap',
        hideText: 'Hide'
    };
    U9HM.presetShort('timer');
    U9HM.presets.scroller.timer = function(f6NM) {
        function h3NM(W3NM) {
            return new Date(W3NM.getUTCFullYear(), W3NM.getUTCMonth(), W3NM.getUTCDate(), W3NM.getUTCHours(), W3NM.getUTCMinutes(), W3NM.getUTCSeconds(), W3NM.getUTCMilliseconds());
        }

        function C3NM(z3NM) {
            var m3NM = {};
            if (M3NM && v6NM[w6NM].index > v6NM.days.index) {
                var P3NM, E3NM, l3NM, K3NM, V3NM = new Date(),
                    y3NM = H6NM ? V3NM : X6NM,
                    a3NM = H6NM ? X6NM : V3NM;
                a3NM = h3NM(a3NM);
                y3NM = h3NM(y3NM);
                m3NM.years = y3NM.getFullYear() - a3NM.getFullYear();
                m3NM.months = y3NM.getMonth() - a3NM.getMonth();
                m3NM.days = y3NM.getDate() - a3NM.getDate();
                m3NM.hours = y3NM.getHours() - a3NM.getHours();
                m3NM.minutes = y3NM.getMinutes() - a3NM.getMinutes();
                m3NM.seconds = y3NM.getSeconds() - a3NM.getSeconds();
                m3NM.fract = (y3NM.getMilliseconds() - a3NM.getMilliseconds()) / 10;
                for (P3NM = R6NM.length; P3NM > 0; P3NM--) {
                    E3NM = R6NM[P3NM - 1];
                    l3NM = v6NM[E3NM];
                    K3NM = R6NM[u9HM.inArray(E3NM, R6NM) - 1];
                    if (v6NM[K3NM] && m3NM[E3NM] < 0) {
                        m3NM[K3NM]--;
                        m3NM[E3NM] += K3NM == 'months' ? 32 - new Date(y3NM.getFullYear(), y3NM.getMonth(), 32).getDate() : l3NM.until + 1;
                    }
                }
                if (w6NM == 'months') {
                    m3NM.months += m3NM.years * 12;
                    delete m3NM.years;
                }
            } else {
                u9HM(R6NM).each(function(r3NM, A3NM) {
                    if (v6NM[A3NM].index <= v6NM[w6NM].index) {
                        m3NM[A3NM] = Math.floor(z3NM / v6NM[A3NM].limit);
                        z3NM -= m3NM[A3NM] * v6NM[A3NM].limit;
                    }
                });
            }
            return m3NM;
        }

        function n3NM(T3NM) {
            var f3NM = 1,
                b3NM = v6NM[T3NM],
                c3NM = b3NM.wheel,
                Q3NM = b3NM.prefix,
                k3NM = 0,
                i3NM = b3NM.until,
                s3NM = v6NM[R6NM[u9HM.inArray(T3NM, R6NM) - 1]];
            if (b3NM.index <= v6NM[w6NM].index && (!s3NM || s3NM.limit > x6NM)) {
                if (!F6NM[T3NM]) {
                    t3NM[0].push(c3NM);
                }
                F6NM[T3NM] = 1;
                c3NM.data = [];
                c3NM.label = b3NM.label || '';
                c3NM.cssClass = 'mbsc-timer-whl-' + T3NM;
                if (x6NM >= b3NM.limit) {
                    f3NM = Math.max(Math.round(x6NM / b3NM.limit), 1);
                    U6NM = f3NM * b3NM.limit;
                }
                if (T3NM == w6NM) {
                    c3NM.min = 0;
                    c3NM.data = function(v3NM) {
                        return {
                            value: v3NM,
                            display: o3NM(v3NM, Q3NM, b3NM.label)
                        };
                    };
                    c3NM.getIndex = function(R3NM) {
                        return R3NM;
                    };
                } else {
                    for (L6NM = k3NM; L6NM <= i3NM; L6NM += f3NM) {
                        c3NM.data.push({
                            value: L6NM,
                            display: o3NM(L6NM, Q3NM, b3NM.label)
                        });
                    }
                }
            }
        }

        function o3NM(H3NM, X3NM, w3NM) {
            return (X3NM || '') + (H3NM < 10 ? '0' : '') + H3NM + '<span class="mbsc-timer-lbl">' + w3NM + '</span>';
        }

        function g6NM(I3NM) {
            var B3NM = [],
                e3NM, F3NM = C3NM(I3NM);
            u9HM(R6NM).each(function(O3NM, g3NM) {
                if (F6NM[g3NM]) {
                    e3NM = Math.max(Math.round(x6NM / v6NM[g3NM].limit), 1);
                    B3NM.push(Math.round(F3NM[g3NM] / e3NM) * e3NM);
                }
            });
            return B3NM;
        }

        function D3NM(u3NM) {
            if (M3NM) {
                k6NM = X6NM - new Date();
                if (k6NM < 0) {
                    k6NM *= -1;
                    H6NM = true;
                } else {
                    H6NM = false;
                }
                s6NM = 0;
                u6NM = true;
            } else if (X6NM !== undefined) {
                u6NM = false;
                k6NM = X6NM * 1000;
                H6NM = Q6NM.mode != 'countdown';
                if (u3NM) {
                    s6NM = 0;
                }
            } else {
                k6NM = 0;
                H6NM = Q6NM.mode != 'countdown';
                u6NM = H6NM;
                if (u3NM) {
                    s6NM = 0;
                }
            }
        }

        function N3NM() {
            if (B6NM) {
                u9HM('.mbsc-fr-w', i6NM).addClass('mbsc-timer-running mbsc-timer-locked');
                u9HM('.mbsc-timer-btn-toggle-c > div', i6NM).text(Q6NM.stopText);
                if (f6NM.buttons.start.icon) {
                    u9HM('.mbsc-timer-btn-toggle-c > div', i6NM).removeClass('mbsc-ic-' + f6NM.buttons.start.icon);
                }
                if (f6NM.buttons.stop.icon) {
                    u9HM('.mbsc-timer-btn-toggle-c > div', i6NM).addClass('mbsc-ic-' + f6NM.buttons.stop.icon);
                }
                if (Q6NM.mode == 'stopwatch') {
                    u9HM('.mbsc-timer-btn-resetlap-c > div', i6NM).text(Q6NM.lapText);
                    if (f6NM.buttons.reset.icon) {
                        u9HM('.mbsc-timer-btn-resetlap-c > div', i6NM).removeClass('mbsc-ic-' + f6NM.buttons.reset.icon);
                    }
                    if (f6NM.buttons.lap.icon) {
                        u9HM('.mbsc-timer-btn-resetlap-c > div', i6NM).addClass('mbsc-ic-' + f6NM.buttons.lap.icon);
                    }
                }
            } else {
                u9HM('.mbsc-fr-w', i6NM).removeClass('mbsc-timer-running');
                u9HM('.mbsc-timer-btn-toggle-c > div', i6NM).text(Q6NM.startText);
                if (f6NM.buttons.start.icon) {
                    u9HM('.mbsc-timer-btn-toggle-c > div', i6NM).addClass('mbsc-ic-' + f6NM.buttons.start.icon);
                }
                if (f6NM.buttons.stop.icon) {
                    u9HM('.mbsc-timer-btn-toggle-c > div', i6NM).removeClass('mbsc-ic-' + f6NM.buttons.stop.icon);
                }
                if (Q6NM.mode == 'stopwatch') {
                    u9HM('.mbsc-timer-btn-resetlap-c > div', i6NM).text(Q6NM.resetText);
                    if (f6NM.buttons.reset.icon) {
                        u9HM('.mbsc-timer-btn-resetlap-c > div', i6NM).addClass('mbsc-ic-' + f6NM.buttons.reset.icon);
                    }
                    if (f6NM.buttons.lap.icon) {
                        u9HM('.mbsc-timer-btn-resetlap-c > div', i6NM).removeClass('mbsc-ic-' + f6NM.buttons.lap.icon);
                    }
                }
            }
        }
        var L6NM, Z3NM, U6NM, O6NM, J6NM, j6NM, k6NM, s6NM, H6NM, i6NM, Y3NM, q3NM = j9HM({}, f6NM.settings),
            Q6NM = j9HM(f6NM.settings, U16M, q3NM),
            e6NM = Q6NM.useShortLabels ? Q6NM.labelsShort : Q6NM.labels,
            p3NM = ['toggle', 'resetlap'],
            R6NM = ['years', 'months', 'days', 'hours', 'minutes', 'seconds', 'fract'],
            v6NM = {
                'years': {
                    index: 6,
                    until: 10,
                    limit: 1000 * 60 * 60 * 24 * 365,
                    label: e6NM[0],
                    wheel: {}
                },
                'months': {
                    index: 5,
                    until: 11,
                    limit: 1000 * 60 * 60 * 24 * 30,
                    label: e6NM[1],
                    wheel: {}
                },
                'days': {
                    index: 4,
                    until: 31,
                    limit: 1000 * 60 * 60 * 24,
                    label: e6NM[2],
                    wheel: {}
                },
                'hours': {
                    index: 3,
                    until: 23,
                    limit: 1000 * 60 * 60,
                    label: e6NM[3],
                    wheel: {}
                },
                'minutes': {
                    index: 2,
                    until: 59,
                    limit: 1000 * 60,
                    label: e6NM[4],
                    wheel: {}
                },
                'seconds': {
                    index: 1,
                    until: 59,
                    limit: 1000,
                    label: e6NM[5],
                    wheel: {}
                },
                'fract': {
                    index: 0,
                    until: 99,
                    limit: 10,
                    label: e6NM[6],
                    prefix: '.',
                    wheel: {}
                }
            },
            F6NM = {},
            S6NM = [],
            d3NM = 0,
            B6NM = false,
            I6NM = true,
            u6NM = false,
            x6NM = Math.max(10, Q6NM.step * 1000),
            w6NM = Q6NM.maxWheel,
            G6NM = Q6NM.mode == 'stopwatch' || M3NM,
            X6NM = Q6NM.targetTime,
            M3NM = X6NM && X6NM.getTime !== undefined,
            t3NM = [
                []
            ];
        f6NM.start = function() {
            if (I6NM) {
                f6NM.reset();
            }
            if (!B6NM) {
                D3NM();
                if (!u6NM && s6NM >= k6NM) {
                    return;
                }
                B6NM = true;
                I6NM = false;
                J6NM = new Date();
                O6NM = s6NM;
                Q6NM.readonly = true;
                f6NM.setVal(g6NM(H6NM ? s6NM : k6NM - s6NM), true, true, false, 100);
                Z3NM = setInterval(function() {
                    s6NM = new Date() - J6NM + O6NM;
                    f6NM.setVal(g6NM(H6NM ? s6NM : k6NM - s6NM), true, true, false, Math.min(100, U6NM - 10));
                    if (!u6NM && s6NM + U6NM >= k6NM) {
                        clearInterval(Z3NM);
                        setTimeout(function() {
                            f6NM.stop();
                            s6NM = k6NM;
                            f6NM.setVal(g6NM(H6NM ? s6NM : 0), true, true, false, 100);
                            f6NM.trigger('onFinish', {
                                time: k6NM
                            });
                            I6NM = true;
                        }, k6NM - s6NM);
                    }
                }, U6NM);
                N3NM();
                f6NM.trigger('onStart');
            }
        };
        f6NM.stop = function() {
            if (B6NM) {
                B6NM = false;
                clearInterval(Z3NM);
                s6NM = new Date() - J6NM + O6NM;
                N3NM();
                f6NM.trigger('onStop', {
                    ellapsed: s6NM
                });
            }
        };
        f6NM.toggle = function() {
            if (B6NM) {
                f6NM.stop();
            } else {
                f6NM.start();
            }
        };
        f6NM.reset = function() {
            f6NM.stop();
            s6NM = 0;
            S6NM = [];
            d3NM = 0;
            f6NM.setVal(g6NM(H6NM ? 0 : k6NM), true, true, false, 100);
            f6NM.settings.readonly = G6NM;
            I6NM = true;
            if (!G6NM) {
                u9HM('.mbsc-fr-w', i6NM).removeClass('mbsc-timer-locked');
            }
            f6NM.trigger('onReset');
        };
        f6NM.lap = function() {
            if (B6NM) {
                j6NM = new Date() - J6NM + O6NM;
                Y3NM = j6NM - d3NM;
                d3NM = j6NM;
                S6NM.push(j6NM);
                f6NM.trigger('onLap', {
                    ellapsed: j6NM,
                    lap: Y3NM,
                    laps: S6NM
                });
            }
        };
        f6NM.resetlap = function() {
            if (B6NM && Q6NM.mode == 'stopwatch') {
                f6NM.lap();
            } else {
                f6NM.reset();
            }
        };
        f6NM.getTime = function() {
            return k6NM;
        };
        f6NM.setTime = function(J3NM) {
            X6NM = J3NM / 1000;
            k6NM = J3NM;
        };
        f6NM.getEllapsedTime = function() {
            return B6NM ? new Date() - J6NM + O6NM : 0;
        };
        f6NM.setEllapsedTime = function(U3NM, j3NM) {
            if (!I6NM) {
                O6NM = s6NM = U3NM;
                J6NM = new Date();
                f6NM.setVal(g6NM(H6NM ? s6NM : k6NM - s6NM), true, j3NM, false, 100);
            }
        };
        D3NM(true);
        if (!w6NM && !k6NM) {
            w6NM = 'minutes';
        }
        if (Q6NM.display !== 'inline') {
            p3NM.push('hide');
        }
        if (!w6NM) {
            u9HM(R6NM).each(function(L3NM, x3NM) {
                if (!w6NM && k6NM >= v6NM[x3NM].limit) {
                    w6NM = x3NM;
                    return false;
                }
            });
        }
        u9HM(R6NM).each(function(S3NM, G3NM) {
            n3NM(G3NM);
        });
        U6NM = Math.max(87, U6NM);
        if (Q6NM.autostart) {
            setTimeout(function() {
                f6NM.start();
            }, 0);
        }
        f6NM.handlers.toggle = f6NM.toggle;
        f6NM.handlers.start = f6NM.start;
        f6NM.handlers.stop = f6NM.stop;
        f6NM.handlers.resetlap = f6NM.resetlap;
        f6NM.handlers.reset = f6NM.reset;
        f6NM.handlers.lap = f6NM.lap;
        f6NM.buttons.toggle = {
            parentClass: 'mbsc-timer-btn-toggle-c',
            text: Q6NM.startText,
            icon: Q6NM.startIcon,
            handler: 'toggle'
        };
        f6NM.buttons.start = {
            text: Q6NM.startText,
            icon: Q6NM.startIcon,
            handler: 'start'
        };
        f6NM.buttons.stop = {
            text: Q6NM.stopText,
            icon: Q6NM.stopIcon,
            handler: 'stop'
        };
        f6NM.buttons.reset = {
            text: Q6NM.resetText,
            icon: Q6NM.resetIcon,
            handler: 'reset'
        };
        f6NM.buttons.lap = {
            text: Q6NM.lapText,
            icon: Q6NM.lapIcon,
            handler: 'lap'
        };
        f6NM.buttons.resetlap = {
            parentClass: 'mbsc-timer-btn-resetlap-c',
            text: Q6NM.resetText,
            icon: Q6NM.resetIcon,
            handler: 'resetlap'
        };
        f6NM.buttons.hide = {
            parentClass: 'mbsc-timer-btn-hide-c',
            text: Q6NM.hideText,
            icon: Q6NM.closeIcon,
            handler: 'cancel'
        };
        return {
            wheels: t3NM,
            headerText: false,
            readonly: G6NM,
            buttons: p3NM,
            mode: 'countdown',
            compClass: 'mbsc-timer',
            parseValue: function d4NM() {
                return g6NM(H6NM ? 0 : k6NM);
            },
            formatValue: function M4NM(N4NM) {
                var p4NM = '',
                    Z4NM = 0;
                u9HM(R6NM).each(function(t4NM, D4NM) {
                    if (D4NM == 'fract') {
                        return;
                    }
                    if (F6NM[D4NM]) {
                        p4NM += N4NM[Z4NM] + (D4NM == 'seconds' && F6NM.fract ? '.' + N4NM[Z4NM + 1] : '') + ' ' + e6NM[t4NM] + ' ';
                        Z4NM++;
                    }
                });
                return p4NM;
            },
            validate: function h4NM(o4NM) {
                var Y4NM = o4NM.values,
                    n4NM = o4NM.index,
                    q4NM = 0;
                if (I6NM && n4NM !== undefined) {
                    X6NM = 0;
                    u9HM(R6NM).each(function(W4NM, C4NM) {
                        if (F6NM[C4NM]) {
                            X6NM += v6NM[C4NM].limit * Y4NM[q4NM];
                            q4NM++;
                        }
                    });
                    X6NM /= 1000;
                    D3NM(true);
                }
            },
            onBeforeShow: function m4NM() {
                Q6NM.showLabel = true;
            },
            onMarkupReady: function y4NM(a4NM) {
                i6NM = u9HM(a4NM.target);
                N3NM();
                if (G6NM) {
                    u9HM('.mbsc-fr-w', i6NM).addClass('mbsc-timer-locked');
                }
            },
            onPosition: function E4NM(P4NM) {
                u9HM('.mbsc-fr-w', P4NM.target).css('min-width', 0).css('min-width', u9HM('.mbsc-fr-btn-cont', P4NM.target)[0].offsetWidth);
            },
            onDestroy: function K4NM() {
                clearInterval(Z3NM);
            }
        };
    };
    var j16M = this && this.__extends || function() {
        var V4NM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(z4NM, l4NM) {
            z4NM.__proto__ = l4NM;
        } || function(b4NM, r4NM) {
            for (var A4NM in r4NM) {
                if (r4NM.hasOwnProperty(A4NM)) b4NM[A4NM] = r4NM[A4NM];
            }
        };
        return function(T4NM, c4NM) {
            function f4NM() {
                this.constructor = T4NM;
            }
            V4NM(T4NM, c4NM);
            T4NM.prototype = c4NM === null ? Object.create(c4NM) : (f4NM.prototype = c4NM.prototype, new f4NM());
        };
    }();
    var a26M = function(s4NM) {
        function Q4NM(i4NM, v4NM, R4NM, H4NM) {
            var k4NM = s4NM.call(this, i4NM, v4NM, R4NM, H4NM) || this;
            k4NM.onChangeEmitter = new J9HM.EventEmitter();
            return k4NM;
        }
        j16M(Q4NM, s4NM);
        Object.defineProperty(Q4NM.prototype, "value", {
            set: function X4NM(w4NM) {
                this.setNewValueProxy(w4NM);
            },
            enumerable: true,
            configurable: true
        });
        Q4NM.prototype.setNewValue = function(B4NM) {
            if (this._instance) {
                var e4NM = this._instance.getVal();
                if (e4NM !== B4NM) {
                    this._instance.setEllapsedTime(B4NM, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        Q4NM.prototype.handleChange = function() {
            var F4NM = this;
            u9HM(this.element).on('change', function() {
                F4NM.zone.run(function() {
                    if (F4NM.control) {
                        F4NM.control.control.patchValue(F4NM._instance.getEllapsedTime());
                    } else {
                        F4NM.onChangeEmitter.emit(F4NM._instance.getEllapsedTime());
                    }
                });
            });
        };
        Q4NM.prototype.ngAfterViewInit = function() {
            s4NM.prototype.ngAfterViewInit.call(this);
            var I4NM = j9HM({
                preset: 'timer'
            }, this.options, this.optionExtensions);
            this._instance = new N66M(this.element, I4NM);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        Q4NM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-timer]',
                exportAs: 'mobiscroll'
            }]
        }];
        Q4NM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        Q4NM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-timer']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-timerChange']
            }]
        };
        return Q4NM;
    }(S9HM);
    var L16M = {
        wheelOrder: 'hhiiss',
        useShortLabels: false,
        min: 0,
        max: Infinity,
        labels: ['Years', 'Months', 'Days', 'Hours', 'Minutes', 'Seconds'],
        labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs']
    };
    U9HM.presetShort('timespan');
    U9HM.presets.scroller.timespan = function(U4NM) {
        function d2NM(m2NM) {
            var W2NM = {};
            u9HM(M2NM).each(function(a2NM, y2NM) {
                W2NM[y2NM] = j4NM[y2NM] ? Math.floor(m2NM / O4NM[y2NM].limit) : 0;
                m2NM -= W2NM[y2NM] * O4NM[y2NM].limit;
            });
            return W2NM;
        }

        function C2NM(K2NM) {
            var z2NM = false,
                V2NM = N2NM[j4NM[K2NM] - 1] || 1,
                P2NM = O4NM[K2NM],
                l2NM = P2NM.label,
                E2NM = P2NM.wheel;
            E2NM.data = [];
            E2NM.label = P2NM.label;
            if (Z2NM.match(new RegExp(P2NM.re + P2NM.re, 'i'))) {
                z2NM = true;
            }
            if (K2NM == L4NM) {
                E2NM.min = S4NM[K2NM];
                E2NM.max = G4NM[K2NM];
                E2NM.data = function(A2NM) {
                    return {
                        value: A2NM * V2NM,
                        display: q2NM(A2NM * V2NM, z2NM, l2NM)
                    };
                };
                E2NM.getIndex = function(r2NM) {
                    return Math.round(r2NM / V2NM);
                };
            } else {
                for (x4NM = 0; x4NM <= P2NM.until; x4NM += V2NM) {
                    E2NM.data.push({
                        value: x4NM,
                        display: q2NM(x4NM, z2NM, l2NM)
                    });
                }
            }
        }

        function q2NM(b2NM, c2NM, T2NM) {
            return (b2NM < 10 && c2NM ? '0' : '') + b2NM + '<span class="mbsc-ts-lbl">' + T2NM + '</span>';
        }

        function Y2NM(Q2NM) {
            var s2NM = 0,
                f2NM = 0;
            u9HM.each(u4NM, function(k2NM, i2NM) {
                if (!isNaN(+Q2NM[s2NM])) {
                    f2NM += O4NM[i2NM.v].limit * Q2NM[k2NM];
                }
            });
            return f2NM;
        }

        function n2NM(R2NM, v2NM) {
            return Math.floor(R2NM / v2NM) * v2NM;
        }
        var x4NM, p2NM, o2NM, S4NM, G4NM, t2NM = j9HM({}, U4NM.settings),
            g4NM = j9HM(U4NM.settings, L16M, t2NM),
            Z2NM = g4NM.wheelOrder,
            J4NM = g4NM.useShortLabels ? g4NM.labelsShort : g4NM.labels,
            M2NM = ['years', 'months', 'days', 'hours', 'minutes', 'seconds'],
            O4NM = {
                'years': {
                    ord: 0,
                    index: 6,
                    until: 10,
                    limit: 1000 * 60 * 60 * 24 * 365,
                    label: J4NM[0],
                    re: 'y',
                    wheel: {}
                },
                'months': {
                    ord: 1,
                    index: 5,
                    until: 11,
                    limit: 1000 * 60 * 60 * 24 * 30,
                    label: J4NM[1],
                    re: 'm',
                    wheel: {}
                },
                'days': {
                    ord: 2,
                    index: 4,
                    until: 31,
                    limit: 1000 * 60 * 60 * 24,
                    label: J4NM[2],
                    re: 'd',
                    wheel: {}
                },
                'hours': {
                    ord: 3,
                    index: 3,
                    until: 23,
                    limit: 1000 * 60 * 60,
                    label: J4NM[3],
                    re: 'h',
                    wheel: {}
                },
                'minutes': {
                    ord: 4,
                    index: 2,
                    until: 59,
                    limit: 1000 * 60,
                    label: J4NM[4],
                    re: 'i',
                    wheel: {}
                },
                'seconds': {
                    ord: 5,
                    index: 1,
                    until: 59,
                    limit: 1000,
                    label: J4NM[5],
                    re: 's',
                    wheel: {}
                }
            },
            u4NM = [],
            N2NM = g4NM.steps || [],
            j4NM = {},
            L4NM = 'seconds',
            h2NM = g4NM.defaultValue || Math.max(g4NM.min, Math.min(0, g4NM.max)),
            D2NM = [
                []
            ];
        u9HM(M2NM).each(function(X2NM, H2NM) {
            p2NM = Z2NM.search(new RegExp(O4NM[H2NM].re, 'i'));
            if (p2NM > -1) {
                u4NM.push({
                    o: p2NM,
                    v: H2NM
                });
                if (O4NM[H2NM].index > O4NM[L4NM].index) {
                    L4NM = H2NM;
                }
            }
        });
        u4NM.sort(function(w2NM, B2NM) {
            return w2NM.o > B2NM.o ? 1 : -1;
        });
        u9HM.each(u4NM, function(F2NM, e2NM) {
            j4NM[e2NM.v] = F2NM + 1;
            D2NM[0].push(O4NM[e2NM.v].wheel);
        });
        S4NM = d2NM(g4NM.min);
        G4NM = d2NM(g4NM.max);
        u9HM.each(u4NM, function(g2NM, I2NM) {
            C2NM(I2NM.v);
        });
        U4NM.getVal = function(O2NM, u2NM) {
            return u2NM ? U4NM._getVal(O2NM) : U4NM._hasValue || O2NM ? Y2NM(U4NM.getArrayVal(O2NM)) : null;
        };
        return {
            showLabel: true,
            wheels: D2NM,
            compClass: 'mbsc-ts',
            parseValue: function J2NM(j2NM) {
                var U2NM = [],
                    x2NM;
                if (U9HM.util.isNumeric(j2NM) || !j2NM) {
                    o2NM = d2NM(j2NM || h2NM);
                    u9HM.each(u4NM, function(G2NM, L2NM) {
                        U2NM.push(o2NM[L2NM.v]);
                    });
                } else {
                    u9HM.each(u4NM, function(d7NM, S2NM) {
                        x2NM = new RegExp('(\\d+)\\s?(' + g4NM.labels[O4NM[S2NM.v].ord] + '|' + g4NM.labelsShort[O4NM[S2NM.v].ord] + ')', 'gi').exec(j2NM);
                        U2NM.push(x2NM ? x2NM[1] : 0);
                    });
                }
                u9HM(U2NM).each(function(M7NM, Z7NM) {
                    U2NM[M7NM] = n2NM(Z7NM, N2NM[M7NM] || 1);
                });
                return U2NM;
            },
            formatValue: function p7NM(D7NM) {
                var N7NM = '';
                u9HM.each(u4NM, function(t7NM, h7NM) {
                    N7NM += +D7NM[t7NM] ? D7NM[t7NM] + ' ' + O4NM[h7NM.v].label + ' ' : '';
                });
                return N7NM ? N7NM.replace(/\s+$/g, '') : 0;
            },
            validate: function q7NM(P7NM) {
                var a7NM, o7NM, Y7NM, n7NM, y7NM = P7NM.values,
                    E7NM = P7NM.direction,
                    m7NM = [],
                    W7NM = true,
                    C7NM = true;
                u9HM(M2NM).each(function(V7NM, K7NM) {
                    if (j4NM[K7NM] !== undefined) {
                        Y7NM = j4NM[K7NM] - 1;
                        m7NM[Y7NM] = [];
                        n7NM = {};
                        if (K7NM != L4NM) {
                            if (W7NM) {
                                for (o7NM = G4NM[K7NM] + 1; o7NM <= O4NM[K7NM].until; o7NM++) {
                                    n7NM[o7NM] = true;
                                }
                            }
                            if (C7NM) {
                                for (o7NM = 0; o7NM < S4NM[K7NM]; o7NM++) {
                                    n7NM[o7NM] = true;
                                }
                            }
                        }
                        y7NM[Y7NM] = U4NM.getValidValue(Y7NM, y7NM[Y7NM], E7NM, n7NM);
                        a7NM = d2NM(Y2NM(y7NM));
                        W7NM = W7NM && a7NM[K7NM] == G4NM[K7NM];
                        C7NM = C7NM && a7NM[K7NM] == S4NM[K7NM];
                        u9HM.each(n7NM, function(z7NM) {
                            m7NM[Y7NM].push(z7NM);
                        });
                    }
                });
                return {
                    disabled: m7NM
                };
            }
        };
    };
    var G16M = this && this.__extends || function() {
        var l7NM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(A7NM, r7NM) {
            A7NM.__proto__ = r7NM;
        } || function(T7NM, c7NM) {
            for (var b7NM in c7NM) {
                if (c7NM.hasOwnProperty(b7NM)) T7NM[b7NM] = c7NM[b7NM];
            }
        };
        return function(Q7NM, f7NM) {
            function s7NM() {
                this.constructor = Q7NM;
            }
            l7NM(Q7NM, f7NM);
            Q7NM.prototype = f7NM === null ? Object.create(f7NM) : (s7NM.prototype = f7NM.prototype, new s7NM());
        };
    }();
    var u46M = function(i7NM) {
        function k7NM(R7NM, H7NM, X7NM, w7NM) {
            var v7NM = i7NM.call(this, R7NM, H7NM, X7NM, w7NM) || this;
            v7NM.onChangeEmitter = new J9HM.EventEmitter();
            return v7NM;
        }
        G16M(k7NM, i7NM);
        Object.defineProperty(k7NM.prototype, "value", {
            set: function B7NM(e7NM) {
                this.setNewValueProxy(e7NM);
            },
            enumerable: true,
            configurable: true
        });
        k7NM.prototype.setNewValue = function(F7NM) {
            if (this._instance) {
                var I7NM = this._instance.getVal();
                if (I7NM !== F7NM) {
                    this._instance.setVal(F7NM, true, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        k7NM.prototype.ngAfterViewInit = function() {
            i7NM.prototype.ngAfterViewInit.call(this);
            var g7NM = j9HM({
                preset: 'timespan'
            }, this.options, this.optionExtensions);
            this._instance = new N66M(this.element, g7NM);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        k7NM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-timespan]',
                exportAs: 'mobiscroll'
            }]
        }];
        k7NM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,
                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        k7NM.propDecorators = {
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-timespan']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-timespanChange']
            }]
        };
        return k7NM;
    }(S9HM);
    U9HM.presets.scroller.treelist = U9HM.presets.scroller.list;
    U9HM.presetShort('list');
    U9HM.presetShort('treelist');
    var d86M = this && this.__extends || function() {
        var O7NM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(u7NM, J7NM) {
            u7NM.__proto__ = J7NM;
        } || function(x7NM, j7NM) {
            for (var U7NM in j7NM) {
                if (j7NM.hasOwnProperty(U7NM)) x7NM[U7NM] = j7NM[U7NM];
            }
        };
        return function(G7NM, L7NM) {
            function S7NM() {
                this.constructor = G7NM;
            }
            O7NM(G7NM, L7NM);
            G7NM.prototype = L7NM === null ? Object.create(L7NM) : (S7NM.prototype = L7NM.prototype, new S7NM());
        };
    }();
    var e46M = function(M1NM) {
        function d1NM(p1NM, N1NM, D1NM, t1NM) {
            var Z1NM = M1NM.call(this, p1NM, N1NM, D1NM, t1NM) || this;
            Z1NM.onChangeEmitter = new J9HM.EventEmitter();
            return Z1NM;
        }
        d86M(d1NM, M1NM);
        Object.defineProperty(d1NM.prototype, "value", {
            set: function h1NM(q1NM) {
                this.setNewValueProxy(q1NM);
            },
            enumerable: true,
            configurable: true
        });
        d1NM.prototype.setNewValue = function(o1NM) {
            if (this._instance) {
                var Y1NM = this._instance.getVal();
                if (Y1NM !== o1NM) {
                    this._instance.setVal(o1NM, true, false);
                    if (this._inputService && this._inputService.input) {
                        this._inputService.input.innerValue = this._instance._value;
                    }
                }
            }
        };
        d1NM.prototype.ngAfterViewInit = function() {
            M1NM.prototype.ngAfterViewInit.call(this);
            var n1NM = this.target;
            if (n1NM) {
                if (typeof n1NM !== 'string' && n1NM._elementRef && n1NM._elementRef.nativeElement) {
                    n1NM = n1NM._elementRef.nativeElement;
                }
            }
            var C1NM = j9HM({
                preset: 'list',
                input: n1NM
            }, this.options, this.optionExtensions);
            this._instance = new N66M(this.element, C1NM);
            if (this.initialValue !== undefined) {
                this._instance.setVal(this.initialValue, true, false);
            }
        };
        d1NM.decorators = [{
            type: J9HM.Directive,
            args: [{
                selector: '[mbsc-treelist]',
                exportAs: 'mobiscroll'
            }]
        }];
        d1NM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }, {
                type: J9HM.NgZone
            }, {
                type: L9HM.NgControl,

                decorators: [{
                    type: J9HM.Optional
                }]
            }, {
                type: G9HM,
                decorators: [{
                    type: J9HM.Optional
                }]
            }];
        };
        d1NM.propDecorators = {
            'target': [{
                type: J9HM.Input,
                args: ['mbsc-target']
            }],
            'value': [{
                type: J9HM.Input,
                args: ['mbsc-treelist']
            }],
            'onChangeEmitter': [{
                type: J9HM.Output,
                args: ['mbsc-treelistChange']
            }]
        };
        return d1NM;
    }(S9HM);
    var Z86M = this && this.__extends || function() {
        var W1NM = Object.setPrototypeOf || {
            __proto__: []
        }
        instanceof Array && function(m1NM, y1NM) {
            m1NM.__proto__ = y1NM;
        } || function(P1NM, E1NM) {
            for (var a1NM in E1NM) {
                if (E1NM.hasOwnProperty(a1NM)) P1NM[a1NM] = E1NM[a1NM];
            }
        };
        return function(V1NM, K1NM) {
            function z1NM() {
                this.constructor = V1NM;
            }
            W1NM(V1NM, K1NM);
            V1NM.prototype = K1NM === null ? Object.create(K1NM) : (z1NM.prototype = K1NM.prototype, new z1NM());
        };
    }();
    var H26M = function(A1NM) {
        function l1NM(r1NM) {
            return A1NM.call(this, r1NM) || this;
        }
        Z86M(l1NM, A1NM);
        l1NM.prototype.ngAfterViewInit = function() {
            var b1NM = j9HM({}, this.options);
            this._instance = new l66M(this.initialElem.nativeElement, b1NM);
        };
        l1NM.decorators = [{
            type: J9HM.Component,
            args: [{
                selector: 'mbsc-widget',
                template: "<ng-content></ng-content>",
                exportAs: 'mobiscroll'
            }]
        }];
        l1NM.ctorParameters = function() {
            return [{
                type: J9HM.ElementRef
            }];
        };
        l1NM.propDecorators = {
            'options': [{
                type: J9HM.Input,
                args: ['options']
            }]
        };
        return l1NM;
    }(E66M);
    var z26M = [m26M, X26M, j26M, M76M, h76M, z76M, v26M, Z76M, w26M, e26M, B26M, F26M, I26M, g26M, O26M, u26M, d76M, L26M, x26M, G26M, S26M, t76M, D76M, V76M, W76M, T26M, D46M, B46M, X46M, R46M, k46M, H46M, w46M, T46M, z36M, c26M, b26M, r26M, A26M, h26M, Q46M, E76M, K26M, a26M, u46M, e46M, H26M];
    var D86M = function() {
        function c1NM() {}
        c1NM.decorators = [{
            type: J9HM.NgModule,
            args: [{
                imports: [L9HM.FormsModule, K86M.CommonModule],
                declarations: [z26M],
                exports: [z26M]
            }]
        }];
        c1NM.ctorParameters = function() {
            return [];
        };
        return c1NM;
    }();
    U9HM.i18n.ca = {
        setText: 'Acceptar',
        cancelText: 'Cancel·lar',
        clearText: 'Esborrar',
        selectedText: '{count} seleccionat',
        selectedPluralText: '{count} seleccionats',
        dateFormat: 'dd/mm/yy',
        dayNames: ['Diumenge', 'Dilluns', 'Dimarts', 'Dimecres', 'Dijous', 'Divendres', 'Dissabte'],
        dayNamesShort: ['Dg', 'Dl', 'Dt', 'Dc', 'Dj', 'Dv', 'Ds'],
        dayNamesMin: ['Dg', 'Dl', 'Dt', 'Dc', 'Dj', 'Dv', 'Ds'],
        dayText: 'Dia',
        hourText: 'Hores',
        minuteText: 'Minuts',
        monthNames: ['Gener', 'Febrer', 'Mar&ccedil;', 'Abril', 'Maig', 'Juny', 'Juliol', 'Agost', 'Setembre', 'Octubre', 'Novembre', 'Desembre'],
        monthNamesShort: ['Gen', 'Feb', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Oct', 'Nov', 'Des'],
        monthText: 'Mes',
        secText: 'Segons',
        timeFormat: 'HH:ii',
        yearText: 'Any',
        nowText: 'Ara',
        pmText: 'pm',
        amText: 'am',
        todayText: 'Avui',
        firstDay: 1,
        dateText: 'Data',
        timeText: 'Temps',
        calendarText: 'Calendari',
        closeText: 'Tancar',
        fromText: 'Iniciar',
        toText: 'Final',
        wholeText: 'Sencer',
        fractionText: 'Fracció',
        unitText: 'Unitat',
        labels: ['Anys', 'Mesos', 'Dies', 'Hores', 'Minuts', 'Segons', ''],
        labelsShort: ['Anys', 'Mesos', 'Dies', 'Hrs', 'Mins', 'Secs', ''],
        startText: 'Iniciar',
        stopText: 'Aturar',
        resetText: 'Reiniciar',
        lapText: 'Volta',
        hideText: 'Amagar',
        backText: 'Enrere',
        undoText: 'Desfés',
        offText: 'No',
        onText: 'Si'
    };
    U9HM.i18n.cs = {
        setText: 'Zadej',
        cancelText: 'Storno',
        clearText: 'Vymazat',
        selectedText: 'Označený: {count}',
        dateFormat: 'dd.mm.yy',
        dayNames: ['Neděle', 'Pondělí', 'Úterý', 'Středa', 'Čtvrtek', 'Pátek', 'Sobota'],
        dayNamesShort: ['Ne', 'Po', 'Út', 'St', 'Čt', 'Pá', 'So'],
        dayNamesMin: ['N', 'P', 'Ú', 'S', 'Č', 'P', 'S'],
        dayText: 'Den',
        hourText: 'Hodiny',
        minuteText: 'Minuty',
        monthNames: ['Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec'],
        monthNamesShort: ['Led', 'Úno', 'Bře', 'Dub', 'Kvě', 'Čer', 'Čvc', 'Spr', 'Zář', 'Říj', 'Lis', 'Pro'],
        monthText: 'Měsíc',
        secText: 'Sekundy',
        timeFormat: 'HH:ii',
        yearText: 'Rok',
        nowText: 'Teď',
        amText: 'am',
        pmText: 'pm',
        todayText: 'Dnes',
        firstDay: 1,
        dateText: 'Datum',
        timeText: 'Čas',
        calendarText: 'Kalendář',
        closeText: 'Zavřít',
        fromText: 'Začátek',
        toText: 'Konec',
        wholeText: 'Celý',
        fractionText: 'Část',
        unitText: 'Jednotka',
        labels: ['Roky', 'Měsíce', 'Dny', 'Hodiny', 'Minuty', 'Sekundy', ''],
        labelsShort: ['Rok', 'Měs', 'Dny', 'Hod', 'Min', 'Sec', ''],
        startText: 'Start',
        stopText: 'Stop',
        resetText: 'Resetovat',
        lapText: 'Etapa',
        hideText: 'Schovat',
        backText: 'Zpět',
        undoText: 'Zpět',
        offText: 'O',
        onText: 'I',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    U9HM.i18n.da = {
        setText: 'Sæt',
        cancelText: 'Annuller',
        clearText: 'Ryd',
        selectedText: '{count} valgt',
        selectedPluralText: '{count} valgt',
        dateFormat: 'dd/mm/yy',
        dayNames: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'],
        dayNamesShort: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'],
        dayNamesMin: ['S', 'M', 'T', 'O', 'T', 'F', 'L'],
        dayText: 'Dag',
        hourText: 'Timer',
        minuteText: 'Minutter',
        monthNames: ['Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December'],
        monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
        monthText: 'Måned',
        secText: 'Sekunder',
        amText: 'am',
        pmText: 'pm',
        timeFormat: 'HH.ii',
        yearText: 'År',
        nowText: 'Nu',
        todayText: 'I dag',
        firstDay: 1,
        dateText: 'Dato',
        timeText: 'Tid',
        calendarText: 'Kalender',
        closeText: 'Luk',
        fromText: 'Start',
        toText: 'Slut',
        wholeText: 'Hele',
        fractionText: 'Dele',
        unitText: 'Enhed',
        labels: ['År', 'Måneder', 'Dage', 'Timer', 'Minutter', 'Sekunder', ''],
        labelsShort: ['År', 'Mdr', 'Dg', 'Timer', 'Min', 'Sek', ''],
        startText: 'Start',
        stopText: 'Stop',
        resetText: 'Nulstil',
        lapText: 'Omgang',
        hideText: 'Skjul',
        offText: 'Fra',
        onText: 'Til',
        backText: 'Tilbage',
        undoText: 'Fortryd'
    };
    U9HM.i18n['en-GB'] = U9HM.i18n['en-UK'] = {
        dateFormat: 'dd/mm/yy',
        timeFormat: 'HH:ii'
    };
    U9HM.i18n.es = {
        setText: 'Aceptar',
        cancelText: 'Cancelar',
        clearText: 'Borrar',
        selectedText: '{count} seleccionado',
        selectedPluralText: '{count} seleccionados',
        dateFormat: 'dd/mm/yy',
        dayNames: ['Domingo', 'Lunes', 'Martes', 'Mi&#xE9;rcoles', 'Jueves', 'Viernes', 'S&#xE1;bado'],
        dayNamesShort: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'S&#xE1;'],
        dayNamesMin: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],
        dayText: 'D&#237;a',
        hourText: 'Horas',
        minuteText: 'Minutos',
        monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'],
        monthNamesShort: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],
        monthText: 'Mes',
        secText: 'Segundos',
        timeFormat: 'HH:ii',
        yearText: 'A&ntilde;o',
        nowText: 'Ahora',
        pmText: 'pm',
        amText: 'am',
        todayText: 'Hoy',
        firstDay: 1,
        dateText: 'Fecha',
        timeText: 'Tiempo',
        calendarText: 'Calendario',
        closeText: 'Cerrar',
        fromText: 'Iniciar',
        toText: 'Final',
        wholeText: 'Entero',
        fractionText: 'Fracción',
        unitText: 'Unidad',
        labels: ['Años', 'Meses', 'Días', 'Horas', 'Minutos', 'Segundos', ''],
        labelsShort: ['Año', 'Mes', 'Día', 'Hora', 'Min', 'Seg', ''],
        startText: 'Iniciar',
        stopText: 'Deténgase',
        resetText: 'Reinicializar',
        lapText: 'Lap',
        hideText: 'Esconder',
        backText: 'Atrás',
        undoText: 'Deshacer',
        offText: 'No',
        onText: 'Sí',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    var t66M = {
        gDaysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
        jDaysInMonth: [31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29]
    };
    t66M.jalaliToGregorian = function(H1NM, v1NM, R1NM) {
        H1NM = parseInt(H1NM);
        v1NM = parseInt(v1NM);
        R1NM = parseInt(R1NM);
        var f1NM;
        var k1NM = H1NM - 979;
        var w1NM = v1NM - 1;
        var X1NM = R1NM - 1;
        var i1NM = 365 * k1NM + parseInt(k1NM / 33) * 8 + parseInt((k1NM % 33 + 3) / 4);
        for (f1NM = 0; f1NM < w1NM; ++f1NM) {
            i1NM += t66M.jDaysInMonth[f1NM];
        }
        i1NM += X1NM;
        var T1NM = i1NM + 79;
        var Q1NM = 1600 + 400 * parseInt(T1NM / 146097);
        T1NM = T1NM % 146097;
        var s1NM = true;
        if (T1NM >= 36525) {
            T1NM--;
            Q1NM += 100 * parseInt(T1NM / 36524);
            T1NM = T1NM % 36524;
            if (T1NM >= 365) {
                T1NM++;
            } else {
                s1NM = false;
            }
        }
        Q1NM += 4 * parseInt(T1NM / 1461);
        T1NM %= 1461;
        if (T1NM >= 366) {
            s1NM = false;
            T1NM--;
            Q1NM += parseInt(T1NM / 365);
            T1NM = T1NM % 365;
        }
        for (f1NM = 0; T1NM >= t66M.gDaysInMonth[f1NM] + (f1NM == 1 && s1NM); f1NM++) {
            T1NM -= t66M.gDaysInMonth[f1NM] + (f1NM == 1 && s1NM);
        }
        var e1NM = f1NM + 1;
        var B1NM = T1NM + 1;
        return [Q1NM, e1NM, B1NM];
    };
    t66M.checkDate = function(I1NM, F1NM, g1NM) {
        return !(I1NM < 0 || I1NM > 32767 || F1NM < 1 || F1NM > 12 || g1NM < 1 || g1NM > t66M.jDaysInMonth[F1NM - 1] + (F1NM == 12 && (I1NM - 979) % 33 % 4 === 0));
    };
    t66M.gregorianToJalali = function(G1NM, j1NM, x1NM) {
        G1NM = parseInt(G1NM);
        j1NM = parseInt(j1NM);
        x1NM = parseInt(x1NM);
        var u1NM;
        var J1NM = G1NM - 1600;
        var L1NM = j1NM - 1;
        var d8NM = x1NM - 1;
        var U1NM = 365 * J1NM + parseInt((J1NM + 3) / 4) - parseInt((J1NM + 99) / 100) + parseInt((J1NM + 399) / 400);
        for (u1NM = 0; u1NM < L1NM; ++u1NM) {
            U1NM += t66M.gDaysInMonth[u1NM];
        }
        if (L1NM > 1 && (J1NM % 4 === 0 && J1NM % 100 !== 0 || J1NM % 400 === 0)) {
            ++U1NM;
        }
        U1NM += d8NM;
        var O1NM = U1NM - 79;
        var M8NM = parseInt(O1NM / 12053);
        O1NM %= 12053;
        var S1NM = 979 + 33 * M8NM + 4 * parseInt(O1NM / 1461);
        O1NM %= 1461;
        if (O1NM >= 366) {
            S1NM += parseInt((O1NM - 1) / 365);
            O1NM = (O1NM - 1) % 365;
        }
        for (u1NM = 0; u1NM < 11 && O1NM >= t66M.jDaysInMonth[u1NM]; ++u1NM) {
            O1NM -= t66M.jDaysInMonth[u1NM];
        }
        var p8NM = u1NM + 1;
        var Z8NM = O1NM + 1;
        return [S1NM, p8NM, Z8NM];
    };
    U9HM.i18n.fa = {
        setText: 'تاييد',
        cancelText: 'انصراف',
        clearText: 'واضح ',
        selectedText: '{count} منتخب',
        dateFormat: 'yy/mm/dd',
        dayNames: ['يکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنج‌شنبه', 'جمعه', 'شنبه'],
        dayNamesShort: ['ی', 'د', 'س', 'چ', 'پ', 'ج', 'ش'],
        dayNamesMin: ['ی', 'د', 'س', 'چ', 'پ', 'ج', 'ش'],
        dayText: 'روز',
        hourText: 'ساعت',
        minuteText: 'دقيقه',
        monthNames: ['فروردين', 'ارديبهشت', 'خرداد', 'تير', 'مرداد', 'شهريور', 'مهر', 'آبان', 'آذر', 'دی', 'بهمن', 'اسفند'],
        monthNamesShort: ['فروردين', 'ارديبهشت', 'خرداد', 'تير', 'مرداد', 'شهريور', 'مهر', 'آبان', 'آذر', 'دی', 'بهمن', 'اسفند'],
        monthText: 'ماه',
        secText: 'ثانيه',
        timeFormat: 'HH:ii',
        timeWheels: 'iiHH',
        yearText: 'سال',
        nowText: 'اکنون',
        amText: 'ب',
        pmText: 'ص',
        todayText: 'امروز',
        getYear: function N8NM(D8NM) {
            return t66M.gregorianToJalali(D8NM.getFullYear(), D8NM.getMonth() + 1, D8NM.getDate())[0];
        },
        getMonth: function t8NM(h8NM) {
            return --t66M.gregorianToJalali(h8NM.getFullYear(), h8NM.getMonth() + 1, h8NM.getDate())[1];
        },
        getDay: function q8NM(o8NM) {
            return t66M.gregorianToJalali(o8NM.getFullYear(), o8NM.getMonth() + 1, o8NM.getDate())[2];
        },
        getDate: function Y8NM(W8NM, n8NM, m8NM, y8NM, a8NM, E8NM, P8NM) {
            if (n8NM < 0) {
                W8NM += Math.floor(n8NM / 12);
                n8NM = 12 + n8NM % 12;
            }
            if (n8NM > 11) {
                W8NM += Math.floor(n8NM / 12);
                n8NM = n8NM % 12;
            }
            var C8NM = t66M.jalaliToGregorian(W8NM, +n8NM + 1, m8NM);
            return new Date(C8NM[0], C8NM[1] - 1, C8NM[2], y8NM || 0, a8NM || 0, E8NM || 0, P8NM || 0);
        },
        getMaxDayOfMonth: function K8NM(z8NM, l8NM) {
            var V8NM = 31;
            while (t66M.checkDate(z8NM, l8NM + 1, V8NM) === false) {
                V8NM--;
            }
            return V8NM;
        },
        firstDay: 6,
        rtl: true,
        dateText: 'تاریخ ',
        timeText: 'زمان ',
        calendarText: 'تقویم',
        closeText: 'نزدیک',
        fromText: 'شروع ',
        toText: 'پایان',
        wholeText: 'تمام',
        fractionText: 'کسر',
        unitText: 'واحد',
        labels: ['سال', 'ماه', 'روز', 'ساعت', 'دقیقه', 'ثانیه', ''],
        labelsShort: ['سال', 'ماه', 'روز', 'ساعت', 'دقیقه', '����انیه', ''],
        startText: 'شروع',
        stopText: 'پايان',
        resetText: 'تنظیم مجدد',
        lapText: 'Lap',
        hideText: 'پنهان کردن',
        backText: 'پشت',
        undoText: 'واچیدن'
    };
    U9HM.i18n.fr = {
        setText: 'Terminer',
        cancelText: 'Annuler',
        clearText: 'Effacer',
        selectedText: '{count} sélectionné',
        selectedPluralText: '{count} sélectionnés',
        dateFormat: 'dd/mm/yy',
        dayNames: ['&#68;imanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'],
        dayNamesShort: ['&#68;im.', 'Lun.', 'Mar.', 'Mer.', 'Jeu.', 'Ven.', 'Sam.'],
        dayNamesMin: ['&#68;', 'L', 'M', 'M', 'J', 'V', 'S'],
        dayText: 'Jour',
        monthText: 'Mois',
        monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
        monthNamesShort: ['Janv.', 'Févr.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Août', 'Sept.', 'Oct.', 'Nov.', 'Déc.'],
        hourText: 'Heures',
        minuteText: 'Minutes',
        secText: 'Secondes',
        timeFormat: 'HH:ii',
        yearText: 'Année',
        nowText: 'Maintenant',
        pmText: 'pm',
        amText: 'am',
        todayText: "Aujourd'hui",
        firstDay: 1,
        dateText: 'Date',
        timeText: 'Heure',
        calendarText: 'Calendrier',
        closeText: 'Fermer',
        fromText: 'Démarrer',
        toText: 'Fin',
        wholeText: 'Entier',
        fractionText: 'Fraction',
        unitText: 'Unité',
        labels: ['Ans', 'Mois', 'Jours', 'Heures', 'Minutes', 'Secondes', ''],
        labelsShort: ['Ans', 'Mois', 'Jours', 'Hrs', 'Min', 'Sec', ''],
        startText: 'Démarrer',
        stopText: 'Arrêter',
        resetText: 'Réinitialiser',
        lapText: 'Lap',
        hideText: 'Cachez',
        backText: 'Retour',
        undoText: 'Annuler',
        offText: 'Non',
        onText: 'Oui',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    U9HM.i18n.he = {
        rtl: true,
        setText: 'שמירה',
        cancelText: 'ביטול',
        clearText: 'נקה',
        selectedText: '{count} נבחר',
        selectedPluralText: '{count} נבחרו',
        dateFormat: 'dd/mm/yy',
        dayNames: ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'],
        dayNamesShort: ["א'", "ב'", "ג'", "ד'", "ה'", "ו'", "ש'"],
        dayNamesMin: ['א', 'ב', 'ג', 'ד', 'ה', 'ו', 'ש'],
        dayText: 'יום',
        hourText: 'שעות',
        minuteText: 'דקות',
        monthNames: ['ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'],
        monthNamesShort: ["ינו", "פבר", "מרץ", "אפר", "מאי", "יונ", "יול", "אוג", "ספט", "אוק", "נוב", "דצמ"],
        monthText: 'חודש',
        secText: 'שניות',
        amText: 'am',
        pmText: 'pm',
        timeFormat: 'HH:ii',
        timeWheels: 'iiHH',
        yearText: 'שנה',
        nowText: 'עכשיו',
        firstDay: 0,
        dateText: 'תאריך',
        timeText: 'זמן',
        calendarText: 'תאריכון',
        closeText: 'סגירה',
        todayText: 'היום',
        eventText: 'מִקרֶה',
        eventsText: 'מִקרֶה',
        fromText: 'התחלה',
        toText: 'סיום',
        wholeText: 'כֹּל',
        fractionText: 'שבריר',
        unitText: 'יחידה',
        labels: ['שנים', 'חודשים', 'ימים', 'שעות', 'דקות', 'שניים', ''],
        labelsShort: ['שנים', 'חודשים', 'ימים', 'שעות', 'דקות', 'שניים', ''],
        startText: 'התחל',
        stopText: 'עצור',
        resetText: 'אתחול',
        lapText: 'הקפה',
        hideText: 'הסתר',
        offText: 'כיבוי',
        onText: 'הפעלה',
        backText: 'חזור',
        undoText: 'ביטול פעולה'
    };
    U9HM.i18n.hu = {
        setText: 'OK',
        cancelText: 'Mégse',
        clearText: 'Törlés',
        selectedText: '{count} kiválasztva',
        dateFormat: 'yy.mm.dd.',
        dayNames: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
        dayNamesShort: ['Va', 'Hé', 'Ke', 'Sze', 'Csü', 'Pé', 'Szo'],
        dayNamesMin: ['V', 'H', 'K', 'Sz', 'Cs', 'P', 'Sz'],
        dayText: 'Nap',
        delimiter: '.',
        hourText: 'Óra',
        minuteText: 'Perc',
        monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június', 'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'],
        monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún', 'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'],
        monthText: 'Hónap',
        secText: 'Másodperc',
        timeFormat: 'H:ii',
        yearText: 'Év',
        nowText: 'Most',
        pmText: 'pm',
        amText: 'am',
        firstDay: 1,
        dateText: 'Dátum',
        timeText: 'Idő',
        calendarText: 'Naptár',
        todayText: 'Ma',
        prevMonthText: 'Előző hónap',
        nextMonthText: 'Következő hónap',
        prevYearText: 'Előző év',
        nextYearText: 'Következő év',
        closeText: 'Bezár',
        eventText: 'esemény',
        eventsText: 'esemény',
        fromText: 'Eleje',
        toText: 'Vége',
        wholeText: 'Egész',
        fractionText: 'Tört',
        unitText: 'Egység',
        labels: ['Év', 'Hónap', 'Nap', 'Óra', 'Perc', 'Másodperc', ''],
        labelsShort: ['Év', 'Hó.', 'Nap', 'Óra', 'Perc', 'Mp.', ''],
        startText: 'Indít',
        stopText: 'Megállít',
        resetText: 'Visszaállít',
        lapText: 'Lap',
        hideText: 'Elrejt',
        backText: 'Vissza',
        undoText: 'Visszavon',
        offText: 'Ki',
        onText: 'Be',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    U9HM.i18n.it = {
        setText: 'OK',
        cancelText: 'Annulla',
        clearText: 'Chiarire',
        selectedText: '{count} selezionato',
        selectedPluralText: '{count} selezionati',
        dateFormat: 'dd/mm/yy',
        dayNames: ['Domenica', 'Lunedì', 'Mertedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'],
        dayNamesShort: ['Do', 'Lu', 'Ma', 'Me', 'Gi', 'Ve', 'Sa'],
        dayNamesMin: ['D', 'L', 'M', 'M', 'G', 'V', 'S'],
        dayText: 'Giorno',
        hourText: 'Ore',
        minuteText: 'Minuti',
        monthNames: ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'],
        monthNamesShort: ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'],
        monthText: 'Mese',
        secText: 'Secondi',
        timeFormat: 'HH:ii',
        yearText: 'Anno',
        nowText: 'Ora',
        pmText: 'pm',
        amText: 'am',
        todayText: 'Oggi',
        firstDay: 1,
        dateText: 'Data',
        timeText: 'Volta',
        calendarText: 'Calendario',
        closeText: 'Chiudere',
        fromText: 'Inizio',
        toText: 'Fine',
        wholeText: 'Intero',
        fractionText: 'Frazione',
        unitText: 'Unità',
        labels: ['Anni', 'Mesi', 'Giorni', 'Ore', 'Minuti', 'Secondi', ''],
        labelsShort: ['Anni', 'Mesi', 'Gio', 'Ore', 'Min', 'Sec', ''],
        startText: 'Inizio',
        stopText: 'Arresto',
        resetText: 'Ripristina',
        lapText: 'Lap',
        hideText: 'Nascondi',
        backText: 'Indietro',
        undoText: 'Annulla',
        offText: 'Via',
        onText: 'Su',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    U9HM.i18n.ja = {
        setText: 'セット',
        cancelText: 'キャンセル',
        clearText: 'クリア',
        selectedText: '{count} 選択',
        dateFormat: 'yy年mm月dd日',
        dayNames: ['日', '月', '火', '水', '木', '金', '土'],
        dayNamesShort: ['日', '月', '火', '水', '木', '金', '土'],
        dayNamesMin: ['日', '月', '火', '水', '木', '金', '土'],
        dayText: '日',
        hourText: '時',
        minuteText: '分',
        monthNames: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
        monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
        monthText: '月',
        secText: '秒',
        timeFormat: 'HH:ii',
        yearText: '年',
        nowText: '今',
        pmText: '午後',
        amText: '午前',
        yearSuffix: '年',
        monthSuffix: '月',
        daySuffix: '日',
        todayText: '今日',
        dateText: '日付',
        timeText: '時間',
        calendarText: 'カレンダー',
        closeText: 'クローズ',
        fromText: '開始',
        toText: '終わり',
        wholeText: '全数',
        fractionText: '分数',
        unitText: '単位',
        labels: ['年間', '月間', '日間', '時間', '分', '秒', ''],
        labelsShort: ['年間', '月間', '日間', '時間', '分', '秒', ''],
        startText: '開始',
        stopText: '停止',
        resetText: 'リセット',
        lapText: 'ラップ',
        hideText: '隠す',
        backText: 'バック',
        undoText: 'アンドゥ'
    };
    U9HM.i18n.lt = {
        setText: 'OK',
        cancelText: 'Atšaukti',
        clearText: 'Išvalyti',
        selectedText: 'Pasirinktas {count}',
        selectedPluralText: 'Pasirinkti {count}',
        dateFormat: 'yy-mm-dd',
        dayNames: ['Sekmadienis', 'Pirmadienis', 'Antradienis', 'Trečiadienis', 'Ketvirtadienis', 'Penktadienis', 'Šeštadienis'],
        dayNamesShort: ['S', 'Pr', 'A', 'T', 'K', 'Pn', 'Š'],
        dayNamesMin: ['S', 'Pr', 'A', 'T', 'K', 'Pn', 'Š'],
        dayText: 'Diena',
        hourText: 'Valanda',
        minuteText: 'Minutes',
        monthNames: ['Sausis', 'Vasaris', 'Kovas', 'Balandis', 'Gegužė', 'Birželis', 'Liepa', 'Rugpjūtis', 'Rugsėjis', 'Spalis', 'Lapkritis', 'Gruodis'],
        monthNamesShort: ['Sau', 'Vas', 'Kov', 'Bal', 'Geg', 'Bir', 'Lie', 'Rugp', 'Rugs', 'Spa', 'Lap', 'Gruo'],
        monthText: 'Mėnuo',
        secText: 'Sekundes',
        amText: 'am',
        pmText: 'pm',
        timeFormat: 'HH:ii',
        yearText: 'Metai',
        nowText: 'Dabar',
        todayText: 'Šiandien',
        firstDay: 1,
        dateText: 'Data',
        timeText: 'Laikas',
        calendarText: 'Kalendorius',
        closeText: 'Uždaryti',
        fromText: 'Nuo',
        toText: 'Iki',
        wholeText: 'Visas',
        fractionText: 'Frakcija',
        unitText: 'Vienetas',
        labels: ['Metai', 'Mėnesiai', 'Dienos', 'Valandos', 'Minutes', 'Sekundes', ''],
        labelsShort: ['m', 'mėn.', 'd', 'h', 'min', 's', ''],
        startText: 'Pradėti',
        stopText: 'Sustabdyti',
        resetText: 'Išnaujo',
        lapText: 'Ratas',
        hideText: 'Slėpti',
        backText: 'Atgal',
        undoText: 'Anuliuoti',
        offText: 'Išj.',
        onText: 'Įj.',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    U9HM.i18n.nl = {
        setText: 'Instellen',
        cancelText: 'Annuleren',
        clearText: 'Duidelijk',
        selectedText: '{count} gekozen',
        dateFormat: 'dd-mm-yy',
        dayNames: ['zondag', 'maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'],
        dayNamesShort: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
        dayNamesMin: ['z', 'm', 'd', 'w', 'd', 'v', 'z'],
        dayText: 'Dag',
        hourText: 'Uur',
        minuteText: 'Minuten',
        monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
        monthNamesShort: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
        monthText: 'Maand',
        secText: 'Seconden',
        timeFormat: 'HH:ii',
        yearText: 'Jaar',
        nowText: 'Nu',
        pmText: 'pm',
        amText: 'am',
        todayText: 'Vandaag',
        firstDay: 1,
        dateText: 'Datum',
        timeText: 'Tijd',
        calendarText: 'Kalender',
        closeText: 'Sluiten',
        fromText: 'Start',
        toText: 'Einde',
        wholeText: 'geheel',
        fractionText: 'fractie',
        unitText: 'eenheid',
        labels: ['Jaren', 'Maanden', 'Dagen', 'Uren', 'Minuten', 'Seconden', ''],
        labelsShort: ['j', 'm', 'd', 'u', 'min', 'sec', ''],
        startText: 'Start',
        stopText: 'Stop',
        resetText: 'Reset',
        lapText: 'Ronde',
        hideText: 'Verbergen',
        backText: 'Terug',
        undoText: 'Onged. maken',
        offText: 'Uit',
        onText: 'Aan',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    U9HM.i18n.no = {
        setText: 'OK',
        cancelText: 'Avbryt',
        clearText: 'Tømme',
        selectedText: '{count} valgt',
        dateFormat: 'dd.mm.yy',
        dayNames: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'],
        dayNamesShort: ['Sø', 'Ma', 'Ti', 'On', 'To', 'Fr', 'Lø'],
        dayNamesMin: ['S', 'M', 'T', 'O', 'T', 'F', 'L'],
        dayText: 'Dag',
        delimiter: '.',
        hourText: 'Time',
        minuteText: 'Minutt',
        monthNames: ['Januar', 'Februar', 'Mars', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Desember'],
        monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
        monthText: 'Måned',
        secText: 'Sekund',
        timeFormat: 'HH:ii',
        yearText: 'År',
        nowText: 'Nå',
        pmText: 'pm',
        amText: 'am',
        todayText: 'I dag',
        firstDay: 1,
        dateText: 'Dato',
        timeText: 'Tid',
        calendarText: 'Kalender',
        closeText: 'Lukk',
        fromText: 'Start',
        toText: 'End',
        wholeText: 'Hele',
        fractionText: 'Fraksjon',
        unitText: 'Enhet',
        labels: ['År', 'Måneder', 'Dager', 'Timer', 'Minutter', 'Sekunder', ''],
        labelsShort: ['År', 'Mån', 'Dag', 'Time', 'Min', 'Sek', ''],
        startText: 'Start',
        stopText: 'Stopp',
        resetText: 'Tilbakestille',
        lapText: 'Runde',
        hideText: 'Skjul',
        backText: 'Tilbake',
        undoText: 'Angre',
        offText: 'Av',
        onText: 'På',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    U9HM.i18n.pl = {
        setText: 'Zestaw',
        cancelText: 'Anuluj',
        clearText: 'Oczyścić',
        selectedText: 'Wybór: {count}',
        dateFormat: 'yy-mm-dd',
        dayNames: ['Niedziela', 'Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota'],
        dayNamesShort: ['Niedz.', 'Pon.', 'Wt.', 'Śr.', 'Czw.', 'Pt.', 'Sob.'],
        dayNamesMin: ['N', 'P', 'W', 'Ś', 'C', 'P', 'S'],
        dayText: 'Dzień',
        hourText: 'Godziny',
        minuteText: 'Minuty',
        monthNames: ['Styczeń', 'Luty', 'Marzec', 'Kwiecień', 'Maj', 'Czerwiec', 'Lipiec', 'Sierpień', 'Wrzesień', 'Październik', 'Listopad', 'Grudzień'],
        monthNamesShort: ['Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru'],
        monthText: 'Miesiąc',
        secText: 'Sekundy',
        timeFormat: 'HH:ii',
        yearText: 'Rok',
        nowText: 'Teraz',
        amText: 'am',
        pmText: 'pm',
        todayText: 'Dzisiaj',
        firstDay: 1,
        dateText: 'Data',
        timeText: 'Czas',
        calendarText: 'Kalendarz',
        closeText: 'Zakończenie',
        fromText: 'Rozpoczęcie',
        toText: 'Koniec',
        wholeText: 'Cały',
        fractionText: 'Ułamek',
        unitText: 'Jednostka',
        labels: ['Lata', 'Miesiąc', 'Dni', 'Godziny', 'Minuty', 'Sekundy', ''],
        labelsShort: ['R', 'M', 'Dz', 'Godz', 'Min', 'Sek', ''],
        startText: 'Rozpoczęcie',
        stopText: 'Zatrzymać',
        resetText: 'Zresetować',
        lapText: 'Zakładka',
        hideText: 'Ukryć',
        backText: 'Wróć',
        undoText: 'Cofnij',
        offText: 'Wył',
        onText: 'Wł',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    U9HM.i18n['pt-BR'] = {
        setText: 'Selecionar',
        cancelText: 'Cancelar',
        clearText: 'Claro',
        selectedText: '{count} selecionado',
        selectedPluralText: '{count} selecionados',
        dateFormat: 'dd/mm/yy',
        dayNames: ['Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado'],
        dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'],
        dayNamesMin: ['D', 'S', 'T', 'Q', 'Q', 'S', 'S'],
        dayText: 'Dia',
        hourText: 'Hora',
        minuteText: 'Minutos',
        monthNames: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
        monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
        monthText: 'Mês',
        secText: 'Segundo',
        timeFormat: 'HH:ii',
        yearText: 'Ano',
        nowText: 'Agora',
        pmText: 'pm',
        amText: 'am',
        todayText: 'Hoje',
        dateText: 'Data',
        timeText: 'Tempo',
        calendarText: 'Calendário',
        closeText: 'Fechar',
        fromText: 'In&iacute;cio',
        toText: 'Fim',
        wholeText: 'Inteiro',
        fractionText: 'Fração',
        unitText: 'Unidade',
        labels: ['Anos', 'Meses', 'Dias', 'Horas', 'Minutos', 'Segundos', ''],
        labelsShort: ['Ano', 'M&ecirc;s', 'Dia', 'Hora', 'Min', 'Seg', ''],
        startText: 'Começar',
        stopText: 'Pare',
        resetText: 'Reinicializar',
        lapText: 'Lap',
        hideText: 'Esconder',
        backText: 'Anterior',
        undoText: 'Desfazer',
        offText: 'Desl',
        onText: 'Lig',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    U9HM.i18n['pt-PT'] = {
        setText: 'Seleccionar',
        cancelText: 'Cancelar',
        clearText: 'Claro',
        selectedText: '{count} selecionado',
        selectedPluralText: '{count} selecionados',
        dateFormat: 'dd-mm-yy',
        dayNames: ['Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'S&aacute;bado'],
        dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'S&aacute;b'],
        dayNamesMin: ['D', 'S', 'T', 'Q', 'Q', 'S', 'S'],
        dayText: 'Dia',
        hourText: 'Horas',
        minuteText: 'Minutos',
        monthNames: ['Janeiro', 'Fevereiro', 'Mar&ccedil;o', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
        monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
        monthText: 'M&ecirc;s',
        secText: 'Segundo',
        timeFormat: 'HH:ii',
        yearText: 'Ano',
        nowText: 'Actualizar',
        pmText: 'pm',
        amText: 'am',
        todayText: 'Hoy',
        firstDay: 1,
        dateText: 'Data',
        timeText: 'Tempo',
        calendarText: 'Calend&aacute;rio',
        closeText: 'Fechar',
        fromText: 'In&iacute;cio',
        toText: 'Fim',
        wholeText: 'Inteiro',
        fractionText: 'Frac&ccedil;&atilde;o',
        unitText: 'Unidade',
        labels: ['Anos', 'Meses', 'Dias', 'Horas', 'Minutos', 'Segundos', ''],
        labelsShort: ['Ano', 'M&ecirc;s', 'Dia', 'Hora', 'Min', 'Seg', ''],
        startText: 'Come&ccedil;ar',
        stopText: 'Parar',
        resetText: 'Reinicializar',
        lapText: 'Lap',
        hideText: 'Esconder',
        backText: 'Anterior',
        undoText: 'Anular',
        offText: 'Desl',
        onText: 'Lig',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    U9HM.i18n.ro = {
        setText: 'Setare',
        cancelText: 'Anulare',
        clearText: 'Ştergere',
        selectedText: '{count} selectat',
        selectedPluralText: '{count} selectate',
        dateFormat: 'dd.mm.yy',
        dayNames: ['Duminică', 'Luni', 'Marți', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă'],
        dayNamesShort: ['Du', 'Lu', 'Ma', 'Mi', 'Jo', 'Vi', 'Sâ'],
        dayNamesMin: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],
        dayText: ' Ziua',
        delimiter: '.',
        hourText: ' Ore ',
        minuteText: 'Minute',
        monthNames: ['Ianuarie', 'Februarie', 'Martie', 'Aprilie', 'Mai', 'Iunie', 'Iulie', 'August', 'Septembrie', 'Octombrie', 'Noiembrie', 'Decembrie'],
        monthNamesShort: ['Ian.', 'Feb.', 'Mar.', 'Apr.', 'Mai', 'Iun.', 'Iul.', 'Aug.', 'Sept.', 'Oct.', 'Nov.', 'Dec.'],
        monthText: 'Luna',
        secText: 'Secunde',
        timeFormat: 'HH:ii',
        yearText: 'Anul',
        nowText: 'Acum',
        amText: 'am',
        pmText: 'pm',
        todayText: 'Astăzi',
        firstDay: 1,
        dateText: 'Data',
        timeText: 'Ora',
        calendarText: 'Calendar',
        closeText: 'Închidere',
        fromText: 'Start',
        toText: 'Final',
        wholeText: 'Complet',
        fractionText: 'Parţial',
        unitText: 'Unitate',
        labels: ['Ani', 'Luni', 'Zile', 'Ore', 'Minute', 'Secunde', ''],
        labelsShort: ['Ani', 'Luni', 'Zile', 'Ore', 'Min.', 'Sec.', ''],
        startText: 'Start',
        stopText: 'Stop',
        resetText: 'Resetare',
        lapText: 'Tură',
        hideText: 'Ascundere',
        backText: 'Înapoi',
        undoText: 'Anulează',
        offText: 'Nu',
        onText: 'Da',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    U9HM.i18n['ru-UA'] = {
        setText: 'Установить',
        cancelText: 'Отменить',
        clearText: 'Очиститьr',
        selectedText: '{count} Вібрать',
        dateFormat: 'dd.mm.yy',
        dayNames: ['воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота'],
        dayNamesShort: ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
        dayNamesMin: ['в', 'п', 'в', 'с', 'ч', 'п', 'с'],
        dayText: 'День',
        delimiter: '.',
        hourText: 'Часы',
        minuteText: 'Минуты',
        monthNames: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],
        monthNamesShort: ['Янв.', 'Февр.', 'Март', 'Апр.', 'Май', 'Июнь', 'Июль', 'Авг.', 'Сент.', 'Окт.', 'Нояб.', 'Дек.'],
        monthText: 'Месяцы',
        secText: 'Сикунды',
        timeFormat: 'HH:ii',
        yearText: 'Год',
        nowText: 'Сейчас',
        amText: 'am',
        pmText: 'pm',
        todayText: 'Cегодня',
        firstDay: 1,
        dateText: 'Дата',
        timeText: 'Время',
        calendarText: 'Календарь',
        closeText: 'Закрыть',
        fromText: 'Начало',
        toText: 'Конец',
        wholeText: 'Весь',
        fractionText: 'Часть',
        unitText: 'Единица',
        labels: ['Годы', ' Месяцы ', ' Дни ', ' Часы ', ' Минуты ', ' Секунды', ''],
        labelsShort: ['Год', 'Мес.', 'Дн.', 'Ч.', 'Мин.', 'Сек.', ''],
        startText: 'Старт',
        stopText: 'Стоп',
        resetText: ' Сброс ',
        lapText: ' Этап ',
        hideText: ' Скрыть ',
        backText: 'назад',
        undoText: 'ОтменитЬ',
        offText: 'O',
        onText: 'I',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    U9HM.i18n['ru-RU'] = U9HM.i18n.ru = {
        setText: 'Установить',
        cancelText: 'Отмена',
        clearText: 'Очистить',
        selectedText: '{count} Выбрать',
        dateFormat: 'dd.mm.yy',
        dayNames: ['воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота'],
        dayNamesShort: ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
        dayNamesMin: ['в', 'п', 'в', 'с', 'ч', 'п', 'с'],
        dayText: 'День',
        delimiter: '.',
        hourText: 'Час',
        minuteText: 'Минут',
        monthNames: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],
        monthNamesShort: ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'],
        monthText: 'Месяц',
        secText: 'Секунд',
        timeFormat: 'HH:ii',
        yearText: 'Год',
        nowText: 'Сейчас',
        amText: 'am',
        pmText: 'pm',
        todayText: 'Cегодня',
        firstDay: 1,
        dateText: 'Дата',
        timeText: 'Время',
        calendarText: 'Календарь',
        closeText: 'Закрыть',
        fromText: 'Начало',
        toText: 'Конец',
        wholeText: 'Целое',
        fractionText: 'Дробное',
        unitText: 'Единица',
        labels: ['Лет', 'Месяцев', 'Дней', 'Часов', 'Минут', 'Секунд', ''],
        labelsShort: ['Лет', 'Мес', 'Дн', 'Час', 'Мин', 'Сек', ''],
        startText: 'Старт',
        stopText: 'Стоп',
        resetText: 'Сбросить',
        lapText: 'Круг',
        hideText: 'Скрыть',

        backText: 'назад',
        undoText: 'ОтменитЬ',
        offText: 'O',
        onText: 'I',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    U9HM.i18n.sk = {
        setText: 'Zadaj',
        cancelText: 'Zrušiť',
        clearText: 'Vymazať',
        selectedText: 'Označený: {count}',
        dateFormat: 'd.m.yy',
        dayNames: ['Nedeľa', 'Pondelok', 'Utorok', 'Streda', 'Štvrtok', 'Piatok', 'Sobota'],
        dayNamesShort: ['Ne', 'Po', 'Ut', 'St', 'Št', 'Pi', 'So'],
        dayNamesMin: ['N', 'P', 'U', 'S', 'Š', 'P', 'S'],
        dayText: 'Ďeň',
        hourText: 'Hodiny',
        minuteText: 'Minúty',
        monthNames: ['Január', 'Február', 'Marec', 'Apríl', 'Máj', 'Jún', 'Júl', 'August', 'September', 'Október', 'November', 'December'],
        monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Máj', 'Jún', 'Júl', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
        monthText: 'Mesiac',
        secText: 'Sekundy',
        timeFormat: 'H:ii',
        yearText: 'Rok',
        nowText: 'Teraz',
        amText: 'am',
        pmText: 'pm',
        todayText: 'Dnes',
        firstDay: 1,
        dateText: 'Datum',
        timeText: 'Čas',
        calendarText: 'Kalendár',
        closeText: 'Zavrieť',
        fromText: 'Začiatok',
        toText: 'Koniec',
        wholeText: 'Celý',
        fractionText: 'Časť',
        unitText: 'Jednotka',
        labels: ['Roky', 'Mesiace', 'Dni', 'Hodiny', 'Minúty', 'Sekundy', ''],
        labelsShort: ['Rok', 'Mes', 'Dni', 'Hod', 'Min', 'Sec', ''],
        startText: 'Start',
        stopText: 'Stop',
        resetText: 'Resetovať',
        lapText: 'Etapa',
        hideText: 'Schovať',
        backText: 'Späť',
        undoText: 'Späť',
        offText: 'O',
        onText: 'I',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    U9HM.i18n.sv = {
        setText: 'OK',
        cancelText: 'Avbryt',
        clearText: 'Klara',
        selectedText: '{count} vald',
        dateFormat: 'yy-mm-dd',
        dayNames: ['Söndag', 'Måndag', 'Tisdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lördag'],
        dayNamesShort: ['Sö', 'Må', 'Ti', 'On', 'To', 'Fr', 'Lö'],
        dayNamesMin: ['S', 'M', 'T', 'O', 'T', 'F', 'L'],
        dayText: 'Dag',
        hourText: 'Timme',
        minuteText: 'Minut',
        monthNames: ['Januari', 'Februari', 'Mars', 'April', 'Maj', 'Juni', 'Juli', 'Augusti', 'September', 'Oktober', 'November', 'December'],
        monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
        monthText: 'Månad',
        secText: 'Sekund',
        timeFormat: 'HH:ii',
        yearText: 'År',
        nowText: 'Nu',
        pmText: 'pm',
        amText: 'am',
        todayText: 'I dag',
        firstDay: 1,
        dateText: 'Datum',
        timeText: 'Tid',
        calendarText: 'Kalender',
        closeText: 'Stäng',
        fromText: 'Start',
        toText: 'Slut',
        wholeText: 'Hela',
        fractionText: 'Bråk',
        unitText: 'Enhet',
        labels: ['År', 'Månader', 'Dagar', 'Timmar', 'Minuter', 'Sekunder', ''],
        labelsShort: ['År', 'Mån', 'Dag', 'Tim', 'Min', 'Sek', ''],
        startText: 'Start',
        stopText: 'Stopp',
        resetText: 'Återställ',
        lapText: 'Varv',
        hideText: 'Dölj',
        backText: 'Tillbaka',
        undoText: 'Ångra',
        offText: 'Av',
        onText: 'På'
    };
    U9HM.i18n.tr = {
        setText: 'Seç',
        cancelText: 'İptal',
        clearText: 'Temizleyin',
        selectedText: '{count} seçilmiş',
        dateFormat: 'dd.mm.yy',
        dayNames: ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'],
        dayNamesShort: ['Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'],
        dayNamesMin: ['P', 'P', 'S', 'Ç', 'P', 'C', 'C'],
        dayText: 'Gün',
        delimiter: '.',
        hourText: 'Saat',
        minuteText: 'Dakika',
        monthNames: ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'],
        monthNamesShort: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],
        monthText: 'Ay',
        secText: 'Saniye',
        timeFormat: 'HH:ii',
        yearText: 'Yıl',
        nowText: 'Şimdi',
        pmText: 'pm',
        amText: 'am',
        todayText: 'Bugün',
        firstDay: 1,
        dateText: 'Tarih',
        timeText: 'Zaman',
        calendarText: 'Takvim',
        closeText: 'Kapatmak',
        fromText: 'Başla',
        toText: 'Son',
        wholeText: 'Tam',
        fractionText: 'Kesir',
        unitText: 'Birim',
        labels: ['Yıl', 'Ay', 'Gün', 'Saat', 'Dakika', 'Saniye', ''],
        labelsShort: ['Yıl', 'Ay', 'Gün', 'Sa', 'Dak', 'Sn', ''],
        startText: 'Başla',
        stopText: 'Durdur',
        resetText: 'Sıfırla',
        lapText: 'Tur',
        hideText: 'Gizle',
        backText: 'Geri',
        undoText: 'Geri Al',
        offText: 'O',
        onText: 'I',
        decimalSeparator: ',',
        thousandsSeparator: '.'
    };
    U9HM.i18n.zh = {
        setText: '确定',
        cancelText: '取消',
        clearText: '明确',
        selectedText: '{count} 选',
        dateFormat: 'yy/mm/dd',
        dayNames: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
        dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
        dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
        dayText: '日',
        hourText: '时',
        minuteText: '分',
        monthNames: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
        monthNamesShort: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'],
        monthText: '月',
        secText: '秒',
        timeFormat: 'HH:ii',
        yearText: '年',
        nowText: '当前',
        pmText: '下午',
        amText: '上午',
        todayText: '今天',
        dateText: '日',
        timeText: '时间',
        calendarText: '日历',
        closeText: '关闭',
        fromText: '开始时间',
        toText: '结束时间',
        wholeText: '合计',
        fractionText: '分数',
        unitText: '单位',
        labels: ['年', '月', '日', '小时', '分钟', '秒', ''],
        labelsShort: ['年', '月', '日', '点', '分', '秒', ''],
        startText: '开始',
        stopText: '停止',
        resetText: '重置',
        lapText: '圈',
        hideText: '隐藏',
        backText: '背部',
        undoText: '复原',
        offText: '关闭',
        onText: '开启',
        decimalSeparator: ',',
        thousandsSeparator: ' '
    };
    var t36M = U9HM.themes;
    t36M.frame['android-holo'] = {};
    t36M.scroller['android-holo'] = j9HM({}, t36M.frame['android-holo'], {
        dateDisplay: 'Mddyy',
        rows: 5,
        minWidth: 76,
        height: 36,
        showLabel: false,
        selectedLineHeight: true,
        selectedLineBorder: 2,
        useShortLabels: true,
        icon: {
            filled: 'star3',
            empty: 'star'
        },
        btnPlusClass: 'mbsc-ic mbsc-ic-arrow-down6',
        btnMinusClass: 'mbsc-ic mbsc-ic-arrow-up6'
    });
    t36M.form['android-holo'] = {};
    var q36M = U9HM.themes;
    q36M.frame.bootstrap = {
        disabledClass: 'disabled',
        activeClass: 'btn-primary',
        activeTabClass: 'active',
        todayClass: 'text-primary',
        onMarkupInserted: function A8NM(b8NM) {
            var r8NM = u9HM(b8NM.target);
            u9HM('.mbsc-fr-popup', r8NM).addClass('popover');
            u9HM('.mbsc-fr-w', r8NM).addClass('popover-content');
            u9HM('.mbsc-fr-hdr', r8NM).addClass('popover-title');
            u9HM('.mbsc-fr-arr-i', r8NM).addClass('popover');
            u9HM('.mbsc-fr-arr', r8NM).addClass('arrow');
            u9HM('.mbsc-fr-btn', r8NM).addClass('btn btn-default');
            u9HM('.mbsc-fr-btn-s .mbsc-fr-btn', r8NM).removeClass('btn-default').addClass('btn btn-primary');
            u9HM('.mbsc-sc-btn-plus', r8NM).addClass('glyphicon glyphicon-chevron-down');
            u9HM('.mbsc-sc-btn-minus', r8NM).addClass('glyphicon glyphicon-chevron-up');
            u9HM('.mbsc-cal-next .mbsc-cal-btn-txt', r8NM).prepend('<i class="glyphicon glyphicon-chevron-right"></i>');
            u9HM('.mbsc-cal-prev .mbsc-cal-btn-txt', r8NM).prepend('<i class="glyphicon glyphicon-chevron-left"></i>');
            u9HM('.mbsc-cal-tabs ul', r8NM).addClass('nav nav-tabs');
            u9HM('.mbsc-cal-sc-c', r8NM).addClass('popover');
            u9HM('.mbsc-cal-week-nrs-c', r8NM).addClass('popover');
            u9HM('.mbsc-cal-events', r8NM).addClass('popover');
            u9HM('.mbsc-cal-events-arr', r8NM).addClass('arrow');
            u9HM('.mbsc-range-btn', r8NM).addClass('btn btn-sm btn-small btn-default');
            u9HM('.mbsc-np-btn', r8NM).addClass('btn btn-default');
            u9HM('.mbsc-sel-filter-cont', r8NM).removeClass('mbsc-input');
            u9HM('.mbsc-sel-filter-input', r8NM).addClass('form-control');
        },
        onPosition: function c8NM(T8NM) {
            setTimeout(function() {
                u9HM('.mbsc-fr-bubble-top, .mbsc-fr-bubble-top .mbsc-fr-arr-i', T8NM.target).removeClass('bottom').addClass('top');
                u9HM('.mbsc-fr-bubble-bottom, .mbsc-fr-bubble-bottom .mbsc-fr-arr-i', T8NM.target).removeClass('top').addClass('bottom');
            }, 10);
        }
    };
    q36M.scroller.bootstrap = j9HM({}, q36M.frame.bootstrap, {
        dateDisplay: 'Mddyy',
        btnCalPrevClass: '',
        btnCalNextClass: '',
        selectedLineHeight: true,
        onEventBubbleShow: function f8NM(s8NM) {
            var Q8NM = u9HM(s8NM.eventList);
            u9HM('.mbsc-cal-event-list', Q8NM).addClass('list-group');
            u9HM('.mbsc-cal-event', Q8NM).addClass('list-group-item');
            setTimeout(function() {
                if (Q8NM.hasClass('mbsc-cal-events-b')) {
                    Q8NM.removeClass('top').addClass('bottom');
                } else {
                    Q8NM.removeClass('bottom').addClass('top');
                }
            }, 10);
        }
    });
    q36M.menustrip.bootstrap = {
        wrapperClass: 'popover panel panel-default',
        groupClass: 'btn-group',
        activeClass: 'btn-primary',
        disabledClass: 'disabled',
        itemClass: 'btn btn-default'
    };
    var Z36M = U9HM.themes;
    Z36M.frame.ios = {
        display: 'bottom',
        headerText: false,
        btnWidth: false,
        deleteIcon: 'ios-backspace',
        scroll3d: true
    };
    Z36M.scroller.ios = j9HM({}, Z36M.frame.ios, {
        rows: 5,
        height: 34,
        minWidth: 55,
        selectedLineHeight: true,
        selectedLineBorder: 1,
        showLabel: false,
        useShortLabels: true,
        btnPlusClass: 'mbsc-ic mbsc-ic-arrow-down5',
        btnMinusClass: 'mbsc-ic mbsc-ic-arrow-up5',
        checkIcon: 'ion-ios7-checkmark-empty',
        filterClearIcon: 'ion-close-circled',
        dateDisplay: 'MMdyy',
        btnCalPrevClass: 'mbsc-ic mbsc-ic-arrow-left5',
        btnCalNextClass: 'mbsc-ic mbsc-ic-arrow-right5'
    });
    Z36M.listview.ios = {
        leftArrowClass: 'mbsc-ic-ion-ios7-arrow-back',
        rightArrowClass: 'mbsc-ic-ion-ios7-arrow-forward'
    };
    Z36M.form.ios = {};
    var a66M;
    var R66M;
    var w66M = U9HM.themes;
    var J26M = U9HM.util;
    var x76M = J26M.testTouch;
    var i66M = J26M.getCoord;
    w66M.frame.material = {
        headerText: false,
        btnWidth: false,
        deleteIcon: 'material-backspace',
        onMarkupReady: function G8NM(S8NM) {
            p16M(u9HM(S8NM.target), '.mbsc-fr-btn-e', 'mbsc-fr-btn-d', 'mbsc-fr-btn-nhl');
        }
    };
    w66M.scroller.material = j9HM({}, w66M.frame.material, {
        showLabel: false,
        selectedLineBorder: 2,
        weekDays: 'min',
        icon: {
            filled: 'material-star',
            empty: 'material-star-outline'
        },
        checkIcon: 'material-check',
        btnPlusClass: 'mbsc-ic mbsc-ic-material-keyboard-arrow-down',
        btnMinusClass: 'mbsc-ic mbsc-ic-material-keyboard-arrow-up',
        btnCalPrevClass: 'mbsc-ic mbsc-ic-material-keyboard-arrow-left',
        btnCalNextClass: 'mbsc-ic mbsc-ic-material-keyboard-arrow-right',
        onEventBubbleShow: function d0NM(N0NM) {
            var M0NM = u9HM(N0NM.eventList),
                Z0NM = u9HM(N0NM.target).closest('.mbsc-cal-row').index() < 2,
                p0NM = u9HM('.mbsc-cal-event-color', M0NM).eq(Z0NM ? 0 : -1).css('background-color');
            u9HM('.mbsc-cal-events-arr', M0NM).css('border-color', Z0NM ? 'transparent transparent ' + p0NM + ' transparent' : p0NM + 'transparent transparent transparent');
        }
    });
    w66M.listview.material = {
        leftArrowClass: 'mbsc-ic-material-keyboard-arrow-left',
        rightArrowClass: 'mbsc-ic-material-keyboard-arrow-right',
        onItemActivate: function D0NM(t0NM) {
            b46M(u9HM(t0NM.target), t0NM.domEvent);
        },
        onItemDeactivate: function h0NM() {
            W36M(R66M);
        },
        onSlideStart: function q0NM(o0NM) {
            u9HM('.mbsc-ripple', o0NM.target).remove();
        },
        onSortStart: function Y0NM(n0NM) {
            u9HM('.mbsc-ripple', n0NM.target).remove();
        }
    };
    w66M.menustrip.material = {
        onInit: function C0NM() {
            p16M(u9HM(this), '.mbsc-ms-item.mbsc-btn-e', 'mbsc-btn-d', 'mbsc-btn-nhl');
        },
        onMarkupInit: function W0NM() {
            u9HM('.mbsc-ripple', this).remove();
        },
        onDestroy: function m0NM() {
            u9HM(this).off('.mbsc-ripple');
        }
    };
    w66M.form.material = {
        addRipple: function y0NM(a0NM, E0NM) {
            b46M(a0NM, E0NM);
        },
        removeRipple: function P0NM() {
            W36M(R66M);
        }
    };
    var a36M = U9HM.themes;
    a36M.frame.wp = {
        headerText: false,
        deleteIcon: 'backspace4',
        setIcon: 'checkmark',
        cancelIcon: 'close',
        closeIcon: 'close',
        clearIcon: 'close',
        okIcon: 'checkmark',
        nowIcon: 'loop2',
        startIcon: 'play3',
        stopIcon: 'pause2',
        resetIcon: 'stop2',
        lapIcon: 'loop2',
        btnWidth: false
    };
    a36M.scroller.wp = j9HM({}, a36M.frame.wp, {
        minWidth: 76,
        height: 76,
        dateDisplay: 'mmMMddDDyy',
        showLabel: false,
        icon: {
            filled: 'star3',
            empty: 'star'
        },
        btnCalPrevClass: 'mbsc-ic mbsc-ic-arrow-left2',
        btnCalNextClass: 'mbsc-ic mbsc-ic-arrow-right2',
        btnPlusClass: 'mbsc-ic mbsc-ic-plus',
        btnMinusClass: 'mbsc-ic mbsc-ic-minus',
        onMarkupInserted: function K0NM(b0NM, c0NM) {
            function T0NM(f0NM) {
                return u9HM.isArray(z0NM.readonly) ? z0NM.readonly[f0NM] : z0NM.readonly;
            }
            var V0NM, l0NM, r0NM, A0NM = u9HM(b0NM.target),
                z0NM = c0NM.settings;
            u9HM('.mbsc-sc-whl', A0NM).on('touchstart mousedown wheel mousewheel', function(Q0NM) {
                if (Q0NM.type === 'mousedown' && l0NM || T0NM(u9HM(this).attr('data-index'))) {
                    return;
                }
                l0NM = Q0NM.type === 'touchstart';
                V0NM = true;
                r0NM = u9HM(this).hasClass('mbsc-sc-whl-wpa');
                u9HM('.mbsc-sc-whl', A0NM).removeClass('mbsc-sc-whl-wpa');
                u9HM(this).addClass('mbsc-sc-whl-wpa');
            }).on('touchmove mousemove', function() {
                V0NM = false;
            }).on('touchend mouseup', function(s0NM) {
                if (V0NM && r0NM && u9HM(s0NM.target).closest('.mbsc-sc-itm').hasClass('mbsc-sc-itm-sel')) {
                    u9HM(this).removeClass('mbsc-sc-whl-wpa');
                }
                if (s0NM.type === 'mouseup') {
                    l0NM = false;
                }
                V0NM = false;
            });
        }
    });
    a36M.form.wp = {};
    U9HM.customTheme('android-holo-light', 'android-holo');
    U9HM.customTheme('ios-dark', 'ios');
    U9HM.customTheme('material-dark', 'material');
    U9HM.customTheme('mobiscroll-dark', 'mobiscroll');
    U9HM.customTheme('wp-light', 'wp');
    var B76M = U9HM.themes;
    var v66M = void 0;
    if (q66M == 'android') {
        v66M = p36M >= 5 ? 'material' : 'android-holo';
    } else if (q66M == 'ios') {
        v66M = 'ios';
    } else if (q66M == 'wp') {
        v66M = 'wp';
    }
    U9HM.setAutoTheme = function() {
        u9HM.each(B76M.frame, function(k0NM, i0NM) {
            if (v66M && i0NM.baseTheme == v66M && k0NM != 'android-holo-light' && k0NM != 'material-dark' && k0NM != 'wp-light' && k0NM != 'ios-dark') {
                U9HM.autoTheme = k0NM;
                return false;
            } else if (k0NM == v66M) {
                U9HM.autoTheme = k0NM;
            }
        });
    };
    U9HM.setAutoTheme();
    U9HM.apiKey = 'a36dbf64';
    U9HM.apiUrl = 'https://trial.mobiscroll.com/';
    x9HM.ɵf = m26M;
    x9HM.ɵg = X26M;
    x9HM.ɵi = j26M;
    x9HM.ɵk = h76M;
    x9HM.ɵh = c36M;
    x9HM.ɵj = M76M;
    x9HM.ɵl = z76M;
    x9HM.ɵu = F26M;
    x9HM.ɵv = I26M;
    x9HM.ɵt = e26M;
    x9HM.ɵn = v26M;
    x9HM.ɵo = J66M;
    x9HM.ɵm = p66M;
    x9HM.ɵp = u66M;
    x9HM.ɵr = w26M;
    x9HM.ɵq = n46M;
    x9HM.ɵy = u26M;
    x9HM.ɵbc = L26M;
    x9HM.ɵbb = x26M;
    x9HM.ɵba = m46M;
    x9HM.ɵz = z66M;
    x9HM.ɵbe = S26M;
    x9HM.ɵbd = G26M;
    x9HM.ɵbf = d76M;
    x9HM.ɵx = O26M;
    x9HM.ɵw = g26M;
    x9HM.ɵs = B26M;
    x9HM.ɵb = E66M;
    x9HM.ɵd = S9HM;
    x9HM.ɵe = P36M;
    x9HM.ɵa = G9HM;
    x9HM.ɵc = V26M;
    x9HM.ɵbh = t76M;
    x9HM.ɵbl = D76M;
    x9HM.ɵbk = W76M;
    x9HM.ɵbj = V76M;
    x9HM.ɵbi = e36M;
    x9HM.ɵbs = X46M;
    x9HM.ɵbu = R46M;
    x9HM.ɵbv = k46M;
    x9HM.ɵbq = B46M;
    x9HM.ɵbp = r66M;
    x9HM.ɵbt = H46M;
    x9HM.ɵbr = w46M;
    x9HM.ɵbo = T26M;
    x9HM.ɵbn = D46M;
    x9HM.ɵbm = O36M;
    x9HM.ɵbw = T46M;
    x9HM.ɵbx = z36M;
    x9HM.ɵbz = b26M;
    x9HM.ɵby = c26M;
    x9HM.ɵca = r26M;
    x9HM.ɵcb = A26M;
    x9HM.ɵbg = Z76M;
    x9HM.ɵcd = Q46M;
    x9HM.ɵcc = h26M;
    x9HM.ɵce = E76M;
    x9HM.ɵcf = K26M;
    x9HM.ɵcg = a26M;
    x9HM.ɵch = u46M;
    x9HM.ɵci = e46M;
    x9HM.ɵcj = H26M;
    x9HM.mobiscroll = U9HM;
    x9HM.MbscModule = D86M;
    Object.defineProperty(x9HM, '__esModule', {
        value: true
    });
}));